Find two ways to create a 3 x 5 matrix with all values equal to 100 (Hint: use ones and zeros).
2 ビュー (過去 30 日間)
古いコメントを表示
I am currentlhy having trouble on this question, ive been trying to figure this out for more than 2 hrs. I need help.
0 件のコメント
回答 (1 件)
Bruno Luong
2019 年 9 月 21 日
(Not sure why an answered has been deleted)
Method 1
100 + zeros(3,5)
Method 2
100 * ones(3,5)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!