How to make variable matrix?

1 visualización (últimos 30 días)
WonJong We
WonJong We el 14 de Abr. de 2021
Comentada: WonJong We el 14 de Abr. de 2021
how to make this matrix?
B=(T(0):T(n))
A=B(:)
its error

Respuesta aceptada

Chad Greene
Chad Greene el 14 de Abr. de 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).
  1 comentario
WonJong We
WonJong We el 14 de Abr. de 2021
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(:)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by