Find two ways to create a 3 x 5 matrix with all values equal to 100 (Hint: use ones and zeros).

11 次查看(过去 30 天)
I am currentlhy having trouble on this question, ive been trying to figure this out for more than 2 hrs. I need help.

回答(1 个)

Bruno Luong
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 CenterFile Exchange 中查找有关 MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by