フィルターのクリア

How to plot a function in the complex plane?

33 ビュー (過去 30 日間)
Kelsey
Kelsey 2014 年 1 月 22 日
コメント済み: Kelsey 2014 年 1 月 22 日
How would I plot the function F = R*exp(i*theta)
where F, R, and theta are functions of w, and i is an imaginary number?
I'm just confused where to start…like how to define w and where to go from there. I'm also confused how to actually have MATLAB plot it correctly in the complex plane (i.e., on the Real and Imaginary axes).
Thanks so much, in advance!

回答 (1 件)

Walter Roberson
Walter Roberson 2014 年 1 月 22 日
To check, you effectively have
F = @(w) R(w) .* exp(i * theta(w));
where R and theta are functions?
w = linspace(-pi, pi, 101);
result = F(w);
After that you need to decide how you want to represent the complex plane. There is no inherent ability to plot in the complex plane as humans cannot see into the complex plane. But you can do things like,
plot(w(:), [real(w(:)), imag(w(:))])
  1 件のコメント
Kelsey
Kelsey 2014 年 1 月 22 日
Thank you so much! You helped me a lot with splitting F up into it's real and imaginary parts.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLighting, Transparency, and Shading についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by