Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

how to change this error

1 Ansicht (letzte 30 Tage)
Dhanya shree Srihari
Dhanya shree Srihari am 12 Okt. 2017
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
Undefined function or variable 'water_r'.Error in sc (line 10) meanwater_r=mean(water_r);
  1 Kommentar
Andrei Bobrov
Andrei Bobrov am 12 Okt. 2017
Defin your variable water_r.

Antworten (1)

KL
KL am 12 Okt. 2017
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

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by