Help regarding plotting of graphs

I need to plot points from 10^1 to 10^99 with a scale of 1000.
I am new to matlab. So, I know that we plot using linspace. How to do this?
%Like below?
y = linspace(10^/1, 10^99, 1000);

 Respuesta aceptada

Star Strider
Star Strider el 8 de Mzo. de 2022
With those ranges and magnitudes, the logspace funciton would be the better option —
t = logspace(1, 99, 1000);
y = exp(-1E-49*t).*sin(2*pi*t*0.001/numel(t));
figure
plot(t,y)
grid
figure
semilogx(t,y)
grid
.

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 8 de Mzo. de 2022

Respondida:

el 8 de Mzo. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by