필터 지우기
필터 지우기

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

조회 수: 8 (최근 30일)
mahrukh jamil
mahrukh jamil 2016년 9월 20일
댓글: Star Strider 2016년 9월 25일
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
mahrukh jamil
mahrukh jamil 2016년 9월 25일
Oh ok. Yes I will. Thanks for the guides and tips.
Star Strider
Star Strider 2016년 9월 25일
My pleasure.

댓글을 달려면 로그인하십시오.

추가 답변 (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