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);

回答(1 个)

Star Strider
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.

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by