フィルターのクリア

How to store a matrix values in this code?

1 回表示 (過去 30 日間)
Matlab111
Matlab111 2014 年 11 月 27 日
コメント済み: Matlab111 2014 年 11 月 27 日
Just run my code you will get so many 'CH' values like this "CH=[150.5936 99.3701 0.9997 50.5976 ]"
and now i want to store all the values of "CH" in one matrix like
AllCH=[150.5936 99.3701 0.9997 15.6001
152.7447 102.5525 1.0000 19.3757
157.0481 132.8359 1.0000 47.7117
166.7268 123.7547 1.0000 44.6008
173.9240 81.3946 1.0000 35.2556
175.4087 73.5609 1.0000 38.9943
187.6387 98.3146 1.0000 49.2308
192.9196 45.3205 1.0000 68.7777
195.0821 71.3002 1.0000 58.2869];
  2 件のコメント
Guillaume
Guillaume 2014 年 11 月 27 日
Please use tags that are relevant to your question
Matlab111
Matlab111 2014 年 11 月 27 日
sorry

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

採用された回答

Guillaume
Guillaume 2014 年 11 月 27 日
What's stopping you from adding your CH one row at a time to AllCH?
Before the loop that calculate CH:
AllCH = [];
In the loop, after you've calculated CH:
AllCH = [AllCH; CH];
  3 件のコメント
Guillaume
Guillaume 2014 年 11 月 27 日
編集済み: Guillaume 2014 年 11 月 27 日
To remove duplicate rows from a matrix:
AllCH = unique(AllCH, 'rows'); %you can add 'stable' to preserve the ordering
I'm not sure what your definition of repeated is though, since this returns more rows than your example.
Matlab111
Matlab111 2014 年 11 月 27 日
ya i'm getting thank you sir,

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

その他の回答 (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