Plot symbolic polynomial
古いコメントを表示
How to plot a symbolic expression that contains a symbol and i(imaginary).
Eg. Plot y=x^2+i+2
採用された回答
その他の回答 (2 件)
Susan
2011 年 5 月 25 日
I got an error with ezplot, so did this instead:
syms x y
y=x^(2+i)+2;
xx=linspace(-6,6,100);
yy=subs(y,x,xx);
plot3(xx,real(yy),imag(yy));grid
xlabel('x');ylabel('y');zlabel('z');
1 件のコメント
Andrew Newell
2011 年 5 月 26 日
That should be
y=x^2+i+2;
Even better is
y=x^2+1i+2;
because then you don't have to worry about i being used as a variable.
What error did you get?
カテゴリ
ヘルプ センター および File Exchange で Conversion Between Symbolic and Numeric についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!