How to fill a matrix with ones

8 views (last 30 days)
I have two matrix A=109*26 and B=1600*26.
I want to fill A with ones to reach 1600*26.

Accepted Answer

madhan ravi
madhan ravi on 23 Jul 2019
Edited: madhan ravi on 23 Jul 2019
A =[A; ones(1600-109,26)]; % size(A)

More Answers (0)

Categories

Find more on Multidimensional Arrays in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!