Repeat vector n times
Afficher commentaires plus anciens
I have a vector t_vec. I want to create another vector that is the repetition of t_vec n types, so that is shows somehting like this: [ion, ion, off, off, off, ion+randn, ion+randn, ioff, ioff, ioff,...], with a different value for randn each time
ton=2;
toff=3;
ion=0.7;
ioff=-6;
t_vec1(1:ton)=ion+randn;
t_vec1(ton+1:ton+toff)=ioff;
How do I do this?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Detection, Range and Doppler Estimation dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!