Unrecognized function or variable 'zvar'.

조회 수: 2 (최근 30일)
Varshini
Varshini 2023년 1월 14일
댓글: John D'Errico 2023년 1월 14일
  댓글 수: 1
John D'Errico
John D'Errico 2023년 1월 14일
No reason to ask the same identical question twice. I closed your other question.

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

답변 (1개)

VBBV
VBBV 2023년 1월 14일
xlabel('xvar')
ylabel('yvar')
xlabel('zvar')
If zvar, yvar and xvar are strings or numeric values passed to function viewSolid, then you must define them before. But it seems they are titles for plot axes, so put them in quotes.
  댓글 수: 6
VBBV
VBBV 2023년 1월 14일
편집: VBBV 2023년 1월 14일
The picture you attach is not clear. But it seems that xvar , yvar and zvar are symbolic variables or strings. So you need to pass them to function in double quotes
>>viewSolid("zvar",F, G, "yvar", f,g,"xvar", a,b)
Stephen23
Stephen23 2023년 1월 14일
Indexing is never valid in a function signature, so the function you show will not work.
None of the "viewSolid" functions I found during a quick web search had indexing in the function signature.

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

카테고리

Help CenterFile Exchange에서 Graphics Object Programming에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by