how to store a signal along with time in the same matrix?

3 次查看(过去 30 天)
Hello, I want to know how can i store and present two variables in a single matrix. i have a ECG data file of 1x100000 and a time vector of same size. i want to present them in the same matrix. how can i do that? Also can i add other variables too to the matrix like comments etc. Thank you

采纳的回答

Star Strider
Star Strider 2016-9-20
Concatenate them vertically:
EKG_Record = [time; ECG];
This puts the time vector in row #1 and the electrocardiogram in row #2.
  8 个评论

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by