How can i extrapolate a logspaced vector without changing my old vector?
Afficher commentaires plus anciens
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 commentaire
Bünyamin Özkaya
le 5 Avr 2017
Réponse acceptée
Plus de réponses (1)
Andrei Bobrov
le 5 Avr 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 commentaire
Bünyamin Özkaya
le 5 Avr 2017
Catégories
En savoir plus sur Logical dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
