I try to use the function : plot(plot::Line2d([1, 2], [3,-1]))
but it shows up an error : Unexpected operator, how can I fix it ? Thanks !

3 Kommentare

Adam
Adam am 26 Feb. 2016
Where did you get that syntax from?
VO Tien Tu
VO Tien Tu am 26 Feb. 2016
Yeah, it's the syntax for MUPAD, I got it run in MUPAD editor.
Is this possible to get it run on Matlab editor ? (by calling MUPAD I don't know how)
Adam
Adam am 26 Feb. 2016
Bearbeitet: Adam am 26 Feb. 2016
Well, I'm afraid I don't know anything about Mupad though that link you posted does start with the following big disclaimer:
'Use only in the MuPAD Notebook Interface. This functionality does not run in MATLAB.'
If you are in base Matlab then you simply shouldn't need the plot::Line2d part.
plot( x, y )
is the main Matlab syntax for plotting x points against y points - e.g.
plot( [1, 2], [3, 4] )
(Remember it is really useful if you can fill in the 'Products' part of the question form to let people know when a question involves something like the Symbolic Toolbox as there are a huge number of toolboxes in Matlab and most of us only have a subset of these so syntax from things like Symbolic Toolbox are very unfamiliar to me).

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Walter Roberson
Walter Roberson am 26 Feb. 2016

0 Stimmen

feval(symengine, 'plot::Line2d', [1, 2], [3,-1])
I do not know what the result will be.

Gefragt:

am 26 Feb. 2016

Beantwortet:

am 26 Feb. 2016

Community Treasure Hunt

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

Start Hunting!

Translated by