How to plot y=(exp.^(sqrt(x)))./(x*x - x*(exp(x))).^(1/3);
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
y=(exp.^(sqrt(x)))./(x*x - x*(exp(x))).^(1/3);
0 Kommentare
Antworten (1)
Star Strider
am 2 Mär. 2021
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 Kommentare
Siehe auch
Kategorien
Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!