create a vector using short hand notations
Mostra commenti meno recenti
? = 1, 1/3 , 1/5 , 1/7 , 1/9 , 1/11 , 1/13
this is what I wrote, y= linspace(1,1/13,7)
this didn't come out right because the spaces between the numbers are not consistent. so can someone please help me write this vector in short hand notation?
Risposte (1)
Steven Lord
il 1 Feb 2019
0 voti
Since I suspect this may be a homework assignment or part of one I'll only give a hint: your vector elements aren't linearly spaced, but their denominators are. Using that I could define y using thirteen characters, the first two of which are "y=".
1 Commento
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!