Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters. Can anyone help in this error?

2 visualizaciones (últimos 30 días)
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]);

Respuestas (1)

VBBV
VBBV el 2 de Ag. de 2022
M = 1:10;
R = 200:300;
Mean = mean(M);
Range = mean(R)
Range = 250
d = 2.326;
n = 5;
SE = Range./(d*sqrt(n)) % check the parenthesis and [ ] is used for concatenating numbers /arrays
SE = 48.0668

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by