how to change this error
信息
此问题已关闭。 请重新打开它进行编辑或回答。
显示 更早的评论
Undefined function or variable 'water_r'.Error in sc (line 10) meanwater_r=mean(water_r);
1 个评论
Andrei Bobrov
2017-10-12
Defin your variable water_r.
回答(1 个)
KL
2017-10-12
if you're using it inside another function, you have to pass it as an argument.
function output = yourFunction(bla, bla, water_r)
...
meanwater_r=mean(water_r);
...
end
0 个评论
此问题已关闭。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!