Modify matrix, row vector

6 ビュー (過去 30 日間)
Anh Dao
Anh Dao 2017 年 12 月 7 日
コメント済み: Anh Dao 2017 年 12 月 7 日
I have 3 row vectors, which is defined as y1, y2 and y3. Their dimension is 1*166500. For y1, I want the first value to be zero, for y2, I want first 500 numbers to be zero and for y3, I want first 501 values to be zero, how do I do this? Thanks you!
  3 件のコメント
Anh Dao
Anh Dao 2017 年 12 月 7 日
編集済み: Anh Dao 2017 年 12 月 7 日
I mean the index of y2 whose elements I want to set to 0, like for first 500 number within y, I want it to be zero. Thanks you!
Anh Dao
Anh Dao 2017 年 12 月 7 日
I'm such an idiot, I figured it out, it's y2(1, 1:500) = 0 , thanks you!

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

回答 (1 件)

Jos (10584)
Jos (10584) 2017 年 12 月 7 日
  1 件のコメント
Anh Dao
Anh Dao 2017 年 12 月 7 日
I read and this had nothing to do with what i asked

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

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by