채택된 답변

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 Exchange에서 Creating 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