Make the vector lin=[1 2 3 ⋯ 20] (the integers from 1 to 20), and then make every other value in it negative to get lin=[1 −2 3 −4 ⋯ −20] . what is the MATLAB code?
Ältere Kommentare anzeigen
lin=[1:20]
then?
Akzeptierte Antwort
Weitere Antworten (1)
Azzi Abdelmalek
am 11 Jul. 2015
Bearbeitet: Azzi Abdelmalek
am 11 Jul. 2015
a=-(1:20)
Kategorien
Mehr zu Descriptive Statistics finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!