problem with undefined function or variable

조회 수: 2 (최근 30일)
best16 programmer
best16 programmer 2017년 5월 13일
댓글: Star Strider 2017년 5월 13일
i have this problem i don't know if matlab going mad :
Undefined function or variable 'name of function'
for the first time it works perfectly but after i close matlab and re-open it ,it gives that error.
can you help me with that
thank you
  댓글 수: 1
Stephen23
Stephen23 2017년 5월 13일
@best16 programmer: please edit your question and show us the complete error message. This means all of the red text.

댓글을 달려면 로그인하십시오.

답변 (1개)

Star Strider
Star Strider 2017년 5월 13일
Without seeing your code, it is not possible to determine the problem. If 'name of function' is a variable (character array), there should be no problem.
Example:
x = 'name of function';
What are you doing with it?
  댓글 수: 8
best16 programmer
best16 programmer 2017년 5월 13일
thanks for the answers,but that same code works for the first time
Star Strider
Star Strider 2017년 5월 13일
I cannot determine what ‘peak’ is with respect to length:
YValue(j) = time(Location)
value=YValue'
The problem is that it will return a (1x2) vector for the result of the size call.
So:
peak = 1:42;
v = 10:size(peak)-4
v =
1×0 empty double row vector
That will not work, since plot expects vector arguments, and ‘empty’ vectors do not fulfill that requirement.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by