How to plot y=(exp.^(sqrt(x)))./(x*x - x*(exp(x))).^(1/3);
조회 수: 1 (최근 30일)
이전 댓글 표시
y=(exp.^(sqrt(x)))./(x*x - x*(exp(x))).^(1/3);
댓글 수: 0
답변 (1개)
Star Strider
2021년 3월 2일
Try these:
x = linspace(-10, 10, 150);
y = (exp(sqrt(x)))./(x.*x - x.*(exp(x))).^(1/3);
figure
plot(x, real(y), x, imag(y))
grid
legend('\Re{y}', '\Im{y}')
y = @(x) (exp(sqrt(x)))./(x.*x - x.*(exp(x))).^(1/3);
figure
fplot(@(x)real(y(x)), [-10 10])
hold on
fplot(@(x)imag(y(x)), [-10 10])
hold off
grid
legend('\Re{y}', '\Im{y}')
It is necessary to use element-wise operations to calculate ‘y’. See Array vs. Matrix Operations for details.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!