How to make variable matrix?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
WonJong We
il 14 Apr 2021
Commentato: WonJong We
il 14 Apr 2021
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/583581/image.png)
how to make this matrix?
B=(T(0):T(n))
A=B(:)
its error
0 Commenti
Risposta accettata
Chad Greene
il 14 Apr 2021
In Matlab, the first index of any variable is 1, so T(0) will produce an error. Try T(1) to T(n+1).
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Get Started with MATLAB in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!