How can i extrapolate a logspaced vector without changing my old vector?
Ältere Kommentare anzeigen
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 Kommentar
Bünyamin Özkaya
am 5 Apr. 2017
Akzeptierte Antwort
Weitere Antworten (1)
Andrei Bobrov
am 5 Apr. 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 Kommentar
Bünyamin Özkaya
am 5 Apr. 2017
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
