フィルターのクリア

add column of zeros at end of matrix?

50 ビュー (過去 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 Center および File ExchangeWord games についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by