Effacer les filtres
Effacer les filtres

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

3 vues (au cours des 30 derniers jours)
mahrukh jamil
mahrukh jamil le 20 Sep 2016
Commenté : Star Strider le 25 Sep 2016
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

Réponse acceptée

Star Strider
Star Strider le 20 Sep 2016
Concatenate them vertically:
EKG_Record = [time; ECG];
This puts the time vector in row #1 and the electrocardiogram in row #2.
  8 commentaires
mahrukh jamil
mahrukh jamil le 25 Sep 2016
Oh ok. Yes I will. Thanks for the guides and tips.
Star Strider
Star Strider le 25 Sep 2016
My pleasure.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by