I need to repeat a sequence 33 times
Afficher commentaires plus anciens
I need to repeat the same sequence 33 times.
t_puls = [0 30 30 60 60 90 90 120 120 910]';
this describes the time for my Current I. The number 0 being 0 seconds and 910 being 910 seconds.
I_puls = [11.5 11.5 2.5 2.5 11.5 11.5 2.5 2.5 11.5 11.5]';
This describes my current according to the time.
I need this exact sequence to be repeated exactly the way it is, but 33 times without pause. Can anyone help me?
Réponses (2)
Read about repmat.
A = [1 2 3] ;
B = repmat(A,1,3)
4 commentaires
Bernardo Farfan Valencia
le 24 Nov 2021
Bernardo Farfan Valencia
le 24 Nov 2021
KSSV
le 24 Nov 2021
What do you mean by increasing time time by 880 sec?
Bernardo Farfan Valencia
le 24 Nov 2021
Image Analyst
le 24 Nov 2021
Try this:
n = 911 * 33;
m = reshape(0:(n-1), [], 33);
Catégories
En savoir plus sur Loops and Conditional Statements 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!