Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

how to change this error

1 vue (au cours des 30 derniers jours)
Dhanya shree Srihari
Dhanya shree Srihari le 12 Oct 2017
Clôturé : MATLAB Answer Bot le 20 Août 2021
Undefined function or variable 'water_r'.Error in sc (line 10) meanwater_r=mean(water_r);
  1 commentaire
Andrei Bobrov
Andrei Bobrov le 12 Oct 2017
Defin your variable water_r.

Réponses (1)

KL
KL le 12 Oct 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

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by