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
  1 件のコメント
waell telmesani
waell telmesani 2018 年 2 月 20 日
Thanks, that works

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by