フィルターのクリア

Set values in a matrix to zero

1 回表示 (過去 30 日間)
Rohan  Mehta
Rohan Mehta 2019 年 6 月 21 日
コメント済み: madhan ravi 2019 年 6 月 21 日
I have a matrix which contains 957 data in it and after that nothing, I want to make that data to be same uptill 957 element and add other 43 elements besides it with value 0 how to do it ?

採用された回答

madhan ravi
madhan ravi 2019 年 6 月 21 日
data=[data;zeros(43,1)] % where data is of size 957 X 1
  1 件のコメント
madhan ravi
madhan ravi 2019 年 6 月 21 日
Note: if your data is a row vector then just simply transpose

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImages についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by