Unrecognized function or variable 'zvar'.
2 次查看(过去 30 天)
显示 更早的评论
1 个评论
John D'Errico
2023-1-14
No reason to ask the same identical question twice. I closed your other question.
回答(1 个)
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 个评论
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 Center 和 File Exchange 中查找有关 Graphics Object Programming 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!