plot w=exp(-x/0.3042) (when 0<w<1)
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
i want to plot w=exp(-x/0.3042) (when 0<w<1)
and i also want to plot the graph of x when 0<w<1
but it constantly error. thanks for reading
0 comentarios
Respuestas (3)
Sam Chak
el 30 de Jul. de 2023
Hi @haeri
The plotting is merely a basic skill that you can learn in MATLAB Onramp. More importantly, you need to know some properties of the exponential decay function before plotting it over the range .
In fact, there is a difference between plotting over and over .
When , .
When , .
x = linspace(0, 5, 1001);
w = exp(-x/0.3042);
plot(x, w), grid on, xlabel('x'), ylabel('w')
w(end) % w(x = 5)
The value of is very small, but it is not absolute zero... yet.
0 comentarios
Ver también
Categorías
Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!