How to make variable matrix?
1 view (last 30 days)
Show older comments
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 Get Started with MATLAB 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!