필터 지우기
필터 지우기

How to create matrix using different columns but same length

조회 수: 3 (최근 30일)
jaypal singh
jaypal singh 2019년 7월 15일
댓글: dpb 2019년 7월 15일
Dear all,
i have 122 signal file with .mat format . I want to make matirx using all 122 variables but the coloumn length is variyeng from 73000 to 100000. How can i do this please advice.
  댓글 수: 2
Adam
Adam 2019년 7월 15일
What do you expect the final matrix to look like in the 27000 rows for which some columns have no data while others do? NaNs?
dpb
dpb 2019년 7월 15일
Kalyan's cell array solution is certainly the simplest from standpoint of construction--that doesn't address what the point of creating the array in the first place is -- what do you intend to do with the data once you've got it? That could influence strongly what route to take for storage--operating on individual channels one-at-a-time the cell array is simple--to deal with more than one simultaneously for cross-correlations or other things, maybe an "ordinary" array w/ NaN could be more useful.

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

답변 (1개)

KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 7월 15일
편집: KALYAN ACHARJYA 2019년 7월 15일
Do the cell array
final_mat={1signal_mat,2signal_mat, .......}
Here 1signal_mat,2signal_mat etc are matrices with any sizes

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

태그

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by