Unrecognized function or variable 'zvar'.

1 Kommentar

John D'Errico
John D'Errico am 14 Jan. 2023
No reason to ask the same identical question twice. I closed your other question.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

VBBV
VBBV am 14 Jan. 2023

0 Stimmen

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 Kommentare

VBBV
VBBV am 14 Jan. 2023
Bearbeitet: VBBV am 14 Jan. 2023
May be you mean
>>viewSolid(var(1),F, G, var(2), f,g,var(3), a,b)
var may be vector of values containing the z,y and x values
Varshini
Varshini am 14 Jan. 2023
Yet doesn't work
VBBV
VBBV am 14 Jan. 2023
What is not working ? Can you show what is error you get? All text in red color
Varshini
Varshini am 14 Jan. 2023
VBBV
VBBV am 14 Jan. 2023
Bearbeitet: VBBV am 14 Jan. 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 am 14 Jan. 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.

Melden Sie sich an, um zu kommentieren.

Kategorien

Tags

Gefragt:

am 14 Jan. 2023

Kommentiert:

am 14 Jan. 2023

Community Treasure Hunt

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

Start Hunting!

Translated by