필터 지우기
필터 지우기

Adding a column of zeros at the beginning??

조회 수: 1 (최근 30일)
waell telmesani
waell telmesani 2018년 2월 20일
댓글: waell telmesani 2018년 2월 20일
Hi,
if H=[1 2 5 4 1;3 4 3 4 1] , how can I add two columns zeros at the beginning of mateix H?? Because I have a huge matrix and I’m looking for a simple way to that.
Thanks

채택된 답변

Birdman
Birdman 2018년 2월 20일
Something like this?
n=2;
H(:,1+n:end+n)=H(:,1:end);
H(:,1:n)=0

추가 답변 (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