how to create array as i describe down?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Abdulaziz Abutunis
am 19 Okt. 2016
Kommentiert: Abdulaziz Abutunis
am 20 Okt. 2016
Hello all,
Please I need help with creating an array that starts at a point (point is integer and is a result of pre calculation say the first element is 17) then the second element should be the nearest 10 ceiling which in this case is 20 and the third is 30 and the array continues till 120. so the array will be x=[17 20 30 40 50 60 70 80 90 100 110 120].
Thanks
0 Kommentare
Akzeptierte Antwort
Jos (10584)
am 19 Okt. 2016
Bearbeitet: Jos (10584)
am 19 Okt. 2016
x = 17
a0 = (fix(x/10)+1)*10
v = [x a0:10:120]
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Operators and Elementary Operations 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!