concatenation of multiple vector variables and display in a single matrix variable

1 回表示 (過去 30 日間)
Hello.. I am writing a matlab code for ecg signal processing. Here I get many intermediate results like R peak values, R peak locations, R-R distances, QRS width etc for each ecg in an ecg file. All these results are 1*x vectors. I want to combine all of them and display in a single matrix of say x*y at the end for easy analysis of all the results. ie, each row should represent different parameters like peaks, locetions, RR distance, QRS width, etc and each column should represent the sample number/time instances. Is it possible to achieve this? Can anybody tell me how can i do this? ( I hope my doubt is clear to you all.) Thank you.

採用された回答

James Tursa
James Tursa 2015 年 9 月 16 日
E.g.,
R_values = 1 x X vector of peak values
R_locations = 1 x X vector of peak locations
R_distances = 1 x X vector of distances
etc
R = [R_values; R_locations; R_distances; etc]'; % an X x Y matrix of results
  7 件のコメント
Stephen23
Stephen23 2015 年 9 月 16 日
編集済み: Stephen23 2015 年 9 月 16 日
The single quote ' is a complex conjugate transpose, while the period and single quote .' is a non-conjugate transpose. It is a good habit to use the non-conjugate transpose unless you specifically need a complex conjugate transpose for some linear algebra.
You can read more about the complex conjugate transpose here:
SHRUTHI k
SHRUTHI k 2015 年 9 月 18 日
ok...Thank you..

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by