how can i define an array with different increments?
11 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi, I want to define an array which has different increments but has a logical order partially, like:
t=[0.01 0.02 0.03 0.04 0.05 0.1 0.15 0.2 0.25 0.3 0.4 0.6 0.7 0.8]
Thanks for your help.
0 Kommentare
Antworten (2)
Conrad
am 26 Jul. 2012
Something like this
t = [ 0:0.1:1,... % increment of 0.1
1.2:0.2:4,... % increment of 0.2
4.3:0.3:4.9]; % increment of 0.3
Conrad
0 Kommentare
Andrei Bobrov
am 26 Jul. 2012
Bearbeitet: Andrei Bobrov
am 26 Jul. 2012
diff(t)
ADD
dist(t)
2 Kommentare
Siehe auch
Kategorien
Mehr zu Matrix Indexing 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!