How would i plot the following?

Currenlty trying to find how to plot the equation below
z=-ln⁡(y)+5e^x

回答(1 个)

Perhaps:
x = linspace(-1,1, 25);
y = logspace(-2, 2, 25);
[X,Y] = ndgrid(x, y);
Z=-log(Y)+5*exp(X);
figure
mesh(X,Y,Z)
grid on

此问题已关闭。

标签

关闭:

2021-8-20

Community Treasure Hunt

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

Start Hunting!

Translated by