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!