Single Line Command for Row Vector
Mostra commenti meno recenti
HELP I need a single line command to create a row vector, variable named v11 that assigns the values 1/2,1/3,1/4,1/5...1/1000 in that order. It has a total of 999 terms. Please I have been trying forever but cant figure it out. It cannot be greater than 1 line. It should look like [.5,.33,.25,...,.001]. I tried using the colon command and linspace and other ways.
Risposta accettata
Più risposte (1)
NURUL
il 10 Apr 2023
0 voti
b = 2 3 4 5 6 7 8 7 6 5 4 3 2
how to create row vector using single command
Categorie
Scopri di più su Logical in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!