Error unexpected matlab operator

조회 수: 2 (최근 30일)
Aws
Aws 2014년 6월 18일
편집: Aws 2014년 6월 18일
Hi, every body
i try to execute the code given in the help of matlab, but there is something wrong, this is the code:
if true %code f:=plot::Function2d(sin(x),x=0..2*PI)
f:=plot::Function2d(sin(x),x=0..2*PI) | Error: The expression to the left of the equals sign is not a valid target for an assignment. end
so i clik on the space bar after "f" the code will be like this:
if true %code f :=plot::Function2d(sin(x),x=0..2*PI)
Undefined function 'f' for input arguments of type 'char'. end
i delete "f", the code will be like:
if true %code plot::Function2d(sin(x),x=0..2*PI)
plot::Function2d(sin(x),x=0..2*PI) | Error: Unexpected MATLAB operator.
end
same result for the belowing codes
if true %code plot(plot::Function2d(sin(x),x=0..2*PI)) end
and
if true %cdoe plot(plot::Function2d(sin(x),x=0..2*PI)): end
and if true %code plot(plot::Function2d(sin(x),x=0..2*PI)); end
so if the codes in the help deosn't work, how can i learn matlab?
my matlab version is complete, 64 bits, 2013b on windows 7.
  댓글 수: 2
Matt J
Matt J 2014년 6월 18일
If you font your code using this button,
I will up-vote your question.
Aws
Aws 2014년 6월 18일
i think it deosn't work exactly the "code"

댓글을 달려면 로그인하십시오.

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2014년 6월 18일
This looks like Mupad code, You have to look at Mupad help
doc mupad
If you are new with matlab, then begin with Matlab getting started
  댓글 수: 1
Aws
Aws 2014년 6월 18일
편집: Aws 2014년 6월 18일
thank you Abdelmalek, that's true it's a mupad code. Salem alaykom. Have a nice day.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 File Operations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by