How to make variable matrix?
1 次查看(过去 30 天)
显示 更早的评论
![](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 个评论
采纳的回答
Chad Greene
2021-4-14
In Matlab, the first index of any variable is 1, so T(0) will produce an error. Try T(1) to T(n+1).
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!