How to fill a matrix with ones

조회 수: 8 (최근 30일)
Hinde essmahi BOUZIANE
Hinde essmahi BOUZIANE 2019년 7월 23일
편집: madhan ravi 2019년 7월 23일
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에서 Multidimensional Arrays에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by