필터 지우기
필터 지우기

add column of zeros at end of matrix?

조회 수: 51 (최근 30일)
Evan Charlesworth
Evan Charlesworth 2018년 10월 14일
답변: Walter Roberson 2018년 10월 14일
I have one matrix that I'm trying to add a column of zeros at the beginning and end of, but so far I can only figure out how to add the column of zeros at the beginning.

답변 (1개)

Walter Roberson
Walter Roberson 2018년 10월 14일
zc = zeros(size(YourMatrix,1),1);
newmatrix = [zc, YourMatrix, zc];

카테고리

Help CenterFile Exchange에서 Word games에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by