Manipulation Rules for Special Matrice
1 回表示 (過去 30 日間)
古いコメントを表示
How to create a 4*6 matrix in which all elements have the value of pi
0 件のコメント
回答 (4 件)
jean claude
2017 年 10 月 22 日
編集済み: jean claude
2017 年 10 月 22 日
there is many ways to do it, you can for example assign i rows, j rows in a matrix of ones; then multiply by pi
x=ones(4,6)
y=x.*pi
3 件のコメント
jean claude
2017 年 10 月 22 日
another way; it means from the first to 4th row and from the first to 6th column.
mat(1:4,1:6)=pi
Steven Lord
2017 年 10 月 22 日
Creating matrices is one of the fundamental operations in MATLAB. Take a look at the links on this documentation page. A number of the functions included on that page will be of use to you, both for this particular assignment and as you work more with MATLAB.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!