Info

此问题已关闭。 请重新打开它进行编辑或回答。

can calculate mean but not std

1 次查看(过去 30 天)
alpedhuez
alpedhuez 2020-8-13
关闭: MATLAB Answer Bot 2021-8-20
I have a vector A. I can
myavg=mean(A)
myavg=0,3
but
stDev=std(A)
will give
"Array indices must be postiive integers or logical values"
Please advise.

回答(1 个)

Walter Roberson
Walter Roberson 2020-8-13
You accidentally created a variable named std

标签

Community Treasure Hunt

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

Start Hunting!

Translated by