how to plot imaginary functions with one variable?
显示 更早的评论
suppose I have a function z which depends on x
z = x ^ 2 + i * x;
i want to plot z with respect to x? how to do that?
1 个评论
David Goodmanson
2020-4-21
Hi Harsha,
plot(x,real(z),x,imag(z))
grid on
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!