How can i extrapolate a logspaced vector without changing my old vector?
Mostrar comentarios más antiguos
Hey,
Lets say i have a vector
logspace(log10(0.003),log10(0.25),30)
and i want to add 3 or 4 more elements until 0.5. like [0.2945 0.3513 0.4191 0.5000] BUT without changing my old vector elements and maintain my logharithmic scale as properly as possible like my example but more precise.
Is there an easy way to do it ?
Kind regards,
Bünyamin
1 comentario
Bünyamin Özkaya
el 5 de Abr. de 2017
Respuesta aceptada
Más respuestas (1)
Andrei Bobrov
el 5 de Abr. de 2017
V_main = logspace(log10(0.003),log10(0.25),30);
V_add = logspace(log10(.25),log10(0.5),5);
V_out = [V_main,V_add(2:end)];
1 comentario
Bünyamin Özkaya
el 5 de Abr. de 2017
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
