how do you define a matrix and its variable
Mostrar comentarios más antiguos
I want to create a matrix , by i * j, in matlab, and then let matlab run this. I need to tell matlab what is i and what is j before i define the matrix, right? Then when I define the matrix, can I write aMatrix = [i, j]?
I know how to do matrix like: aMatrix = [1 3 7 ; 5 6 7], but now I want to know how to make a general matrix by giving i and j in matlab.
Respuestas (1)
4 comentarios
Wenchen Liu
el 15 de Nov. de 2021
Wenchen Liu
el 15 de Nov. de 2021
Adam Danz
el 15 de Nov. de 2021
Yes, just like in my demo.
Categorías
Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!