How to fill a matrix with ones
5 views (last 30 days)
Show older comments
Hinde essmahi BOUZIANE
on 23 Jul 2019
Edited: madhan ravi
on 23 Jul 2019
I have two matrix A=109*26 and B=1600*26.
I want to fill A with ones to reach 1600*26.
0 Comments
Accepted Answer
madhan ravi
on 23 Jul 2019
Edited: madhan ravi
on 23 Jul 2019
A =[A; ones(1600-109,26)]; % size(A)
0 Comments
More Answers (0)
See Also
Categories
Find more on Get Started with MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!