how to change this error

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

1 comentario

Andrei Bobrov
Andrei Bobrov el 12 de Oct. de 2017
Defin your variable water_r.

Respuestas (1)

KL
KL el 12 de Oct. de 2017

0 votos

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

La pregunta está cerrada.

Preguntada:

el 12 de Oct. de 2017

Cerrada:

el 20 de Ag. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by