How to make variable matrix?

1 回表示 (過去 30 日間)
WonJong We
WonJong We 2021 年 4 月 14 日
コメント済み: WonJong We 2021 年 4 月 14 日
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 Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by