How would i plot the following?

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

Answers (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

This question is closed.

Tags

Asked:

on 29 Jan 2020

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!