How to graph log function?

I am trying to graph this function on matlab?
Can someone please help me?

 Risposta accettata

Chunru
Chunru il 2 Giu 2021
Modificato: Chunru il 2 Giu 2021
y = linspace(0, 1e-3, 100);
x = 14/log(2)*log(y./sqrt(1e-6-y.^2)) + 37.119;
plot(y, x)
xlabel('y');
ylabel('x');

3 Commenti

Hi! I did what you said, but it graphed x, y the other way around;(
You specified x as a function of y.
If you want to plot other way:
plot(x, y)
xlabel('x');
ylabel('y');
THANK YOU SO MUCH !!

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by