I have a matix of 117 by 4. I need to make it 160 by 4 by adding 43 rows of zeros.

조회 수: 1 (최근 30일)
How can I do this by using matlab command or a code line.

채택된 답변

Star Strider
Star Strider 2018년 11월 9일
Try this:
M = rand(117,4); % Create Matrix
M = [M; zeros(43,4)]; % Add ‘zeros’

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by