MATLAB Answers

How to fill a matrix with ones

11 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.

  0 Comments

Sign in to comment.

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)

  0 Comments

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!