how to change this error

Undefined function or variable 'water_r'.Error in sc (line 10) meanwater_r=mean(water_r);

1 件のコメント

Andrei Bobrov
Andrei Bobrov 2017 年 10 月 12 日
Defin your variable water_r.

回答 (1 件)

KL
KL 2017 年 10 月 12 日

0 投票

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

この質問は閉じられています。

質問済み:

2017 年 10 月 12 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by