insert zero into matrix

1 回表示 (過去 30 日間)
Big Data
Big Data 2021 年 7 月 16 日
回答済み: Jan 2021 年 7 月 16 日
I have a matrix M whose size is 96 x1, I have to insert zero from 89th row to 170 th row..Any idea how to do this ??

採用された回答

Jan
Jan 2021 年 7 月 16 日
You cannot "insert" a 0 in row 170, if the vector has 96 rows only. You can append zeros only:
x = rand(96, 1);
x(89:170) = 0;

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by