フィルターのクリア

Create a 2 by 5 matrix of all ones and store it in a Variable. Then, replace the second column in the matrix with a -12 and a 36??

7 ビュー (過去 30 日間)
Hi dear all, this question comes from my uni instructor.
The questoin is kinda wired but I was wondering if you could give me a hand.
Thank you guys!

採用された回答

Frank Pernett
Frank Pernett 2021 年 10 月 6 日
x = ones(2,5)
x = 2×5
1 1 1 1 1 1 1 1 1 1
x(1,2) = -12
x = 2×5
1 -12 1 1 1 1 1 1 1 1
x(2,2) = 36
x = 2×5
1 -12 1 1 1 1 36 1 1 1

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeResizing and Reshaping Matrices についてさらに検索

タグ

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by