plot::Line2d doesn't work
이전 댓글 표시
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
Adam
2016년 2월 26일
Where did you get that syntax from?
VO Tien Tu
2016년 2월 26일
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).
답변 (1개)
Walter Roberson
2016년 2월 26일
feval(symengine, 'plot::Line2d', [1, 2], [3,-1])
I do not know what the result will be.
카테고리
도움말 센터 및 File Exchange에서 2-D Function Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!