Generate list of frequencies evenly spaced in logarithmic plot
21 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Michael
el 18 de Mzo. de 2024
For an experiment, I need to generate a list of frequencies (ranging from 0.2 rad/s to 628 rad/s). However, they need to be evenly spaced on a logarithmic scale. I have looked at logspace (https://www.mathworks.com/help/matlab/ref/logspace.html), but that does not quite seem to do what I need.
I struggle to understand how to approach the problem.
Thanks!
0 comentarios
Respuesta aceptada
Stephen23
el 18 de Mzo. de 2024
X = logspace(log10(0.2),log10(628),8)
Y = sqrt(X);
semilogx(X,Y,'-*')
Ver también
Categorías
Más información sobre Logical 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!