How to plot y=(exp.^(sqrt(x)))./(x*x - x*(exp(x))).^(1/3);

1 回表示 (過去 30 日間)
Shashyabh Ray
Shashyabh Ray 2021 年 3 月 2 日
回答済み: Star Strider 2021 年 3 月 2 日
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 Center および File ExchangeMatrices and Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by