How to plot this formula in matlab?

I am new to MATLAB and dont know how to plot this, please help

 採用された回答

Image Analyst
Image Analyst 2020 年 11 月 7 日
編集済み: Image Analyst 2020 年 11 月 7 日

1 投票

Isn't it just
phi = linspace(-4, 4, 1000); % Or whatever range you want
numerator = 2 * sqrt(pi * phi) .* cos(1./phi);
denominator = phi .^ (1/3) + phi .^2 + 1;
psi = numerator ./ denominator;
% Plot real part
subplot(2, 1, 1);
plot(phi, real(psi), 'b-')
grid on;
title('Real part of psi', 'FontSize', 20)
xlabel('phi', 'FontSize', 20)
ylabel('real(psi)', 'FontSize', 20)
% Plot imaginary part
subplot(2, 1, 2);
plot(phi, imag(psi), 'r-')
grid on;
title('Imaginary part of psi', 'FontSize', 20)
xlabel('phi', 'FontSize', 20)
ylabel('imag(psi)', 'FontSize', 20)
% Maximize the window.
g = gcf;
g.WindowState = 'maximized'
What is the context? Where did this formula come from? What does it describe?

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

質問済み:

2020 年 11 月 7 日

編集済み:

2020 年 11 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by