Unrecognized function or variable 'zvar'.

2 visualizaciones (últimos 30 días)
Varshini
Varshini el 14 de En. de 2023
Comentada: John D'Errico el 14 de En. de 2023
  1 comentario
John D'Errico
John D'Errico el 14 de En. de 2023
No reason to ask the same identical question twice. I closed your other question.

Iniciar sesión para comentar.

Respuestas (1)

VBBV
VBBV el 14 de En. de 2023
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 comentarios
VBBV
VBBV el 14 de En. de 2023
Editada: VBBV el 14 de En. de 2023
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 el 14 de En. de 2023
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.

Iniciar sesión para comentar.

Categorías

Más información sobre Graphics Object Programming en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by