How to make variable matrix?
1 view (last 30 days)
Show older comments
![](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 Comments
Accepted Answer
Chad Greene
on 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).
More Answers (0)
See Also
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!