How to fill a matrix with ones

5 次查看(过去 30 天)
I have two matrix A=109*26 and B=1600*26.
I want to fill A with ones to reach 1600*26.

采纳的回答

madhan ravi
madhan ravi 2019-7-23
编辑:madhan ravi 2019-7-23
A =[A; ones(1600-109,26)]; % size(A)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by