plot::Line2d doesn't work
Show older comments
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 Comments
Adam
on 26 Feb 2016
Where did you get that syntax from?
VO Tien Tu
on 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).
Answers (1)
Walter Roberson
on 26 Feb 2016
feval(symengine, 'plot::Line2d', [1, 2], [3,-1])
I do not know what the result will be.
Categories
Find more on 2-D Function Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!