combining different row vectors of different lengths
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Adil Saeed
am 15 Aug. 2022
Kommentiert: Adil Saeed
am 16 Aug. 2022
t1 = 30;
t2 = 15;
t3 = 12;
t4 = 2.4;
t5 = 2.1428;
t6 = 2.5;
v1 = 0:t1:900-t1;
v2 = 900:t2:1800-t2;
v3 = 1800:t3:2700-t3;
v4 = 2700:t4:3600-t4;
v5 = 3600:t5:4500-t5;
v6 = 4500:t6:5400-t6;
I am wondering if i can combine all these 'v' vectors into one, whilst keeping the conditions set. So at 900, the values increase by t2 rather than t1 and at 1800 the values increase by t3 rather than t2 etc.
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Model Import finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!