How to make variable matrix?

1 次查看(过去 30 天)
how to make this matrix?
B=(T(0):T(n))
A=B(:)
its error

采纳的回答

Chad Greene
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).
  1 个评论
WonJong We
WonJong We 2021-4-14
Thank you so much!!
but still error...
Should I enter the equation for T?
I want to calculate with T as a variable.
syms T
B=(T(1):T(n+1))
A=B(:)

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by