Borrar filtros
Borrar filtros

Dynamically determining a matrix

1 visualización (últimos 30 días)
Mahmoud Solomon
Mahmoud Solomon el 30 de Mzo. de 2018
Comentada: James Tursa el 31 de Mzo. de 2018
I have a some data, say n rows and 4 columns. I can easily form a state matrix as indicated below.
A = [a b c d; b e f g; c f l k; d f l n];
Note: Each element in A is scalar and was computed from the data.
How can I generalize it so that it can accommodate any number of columns?
  1 comentario
James Tursa
James Tursa el 31 de Mzo. de 2018
Please show what the upstream calculations are for producing the scalars that will go into the matrix. Then we can advise how to get them into a matrix in a generalized way.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by