Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

how to change this error

조회 수: 1 (최근 30일)
Dhanya shree Srihari
Dhanya shree Srihari 2017년 10월 12일
마감: MATLAB Answer Bot 2021년 8월 20일
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일
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

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by