Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters. Can anyone help in this error?
2 次查看(过去 30 天)
显示 更早的评论
prompt = " Mean Values:";
M = input(prompt)
prompt = "Range Values:";
R = input(prompt)
Mean = mean(M);
Mean
Range = mean(R);
Range
d = 2.326
n = 5
SE = Range/(d*(sqrt[n]);
0 个评论
回答(1 个)
VBBV
2022-8-2
M = 1:10;
R = 200:300;
Mean = mean(M);
Range = mean(R)
d = 2.326;
n = 5;
SE = Range./(d*sqrt(n)) % check the parenthesis and [ ] is used for concatenating numbers /arrays
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!