how to insert zeros in a certain column of only one row.

1 回表示 (過去 30 日間)
md mayeen uddin
md mayeen uddin 2021 年 7 月 6 日
編集済み: md mayeen uddin 2021 年 7 月 6 日
i have a vector of A =1x201
i want to insert zeros from column 116 to 170.
Any help will be appriciateable

採用された回答

Akshit Bagde
Akshit Bagde 2021 年 7 月 6 日
You can do this
A = ones(1,210);
A(116:170) = 0;
  1 件のコメント
md mayeen uddin
md mayeen uddin 2021 年 7 月 6 日
編集済み: md mayeen uddin 2021 年 7 月 6 日
that works bro. thanks a lot

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeJust for fun についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by