how do you define a matrix and its variable
古いコメントを表示
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.
回答 (1 件)
4 件のコメント
Wenchen Liu
2021 年 11 月 15 日
Wenchen Liu
2021 年 11 月 15 日
Adam Danz
2021 年 11 月 15 日
Yes, just like in my demo.
カテゴリ
ヘルプ センター および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!