필터 지우기
필터 지우기

Store variable number of data sets

조회 수: 1 (최근 30일)
Ricky
Ricky 2013년 6월 20일
Hello Everyone,
I have a matrix of size Z [15*22] elements and in this matrix I want to add some particular set of distance values. These distance reading I am getting from a sensor. My problem is that the number of distance reading vary. So in the first set of data readings my number of distances can be 22 but in the second set of reading I may get only 21 values. These values need to be plugged in Z matrix.
How can I solve this problem.
Thanks

답변 (1개)

Image Analyst
Image Analyst 2013년 6월 20일
I don't see the problem. Why not just use a Z of 15x21? Who's forcing you to use only 15x22 when that is not appropriate for 15x21 data? Just use the size of the matrix that matches the number of measurements you have.
  댓글 수: 1
Ricky
Ricky 2013년 6월 20일
actually in the maximum value of distance readings is 22 and minimum value of distance readings is 20. I do not want to lose the information. I know one way could be to take minimum value and chop the bigger data sets. I am also thinking of interpolating my data to increase its size.
So I thought maybe someone can give me some idea on this forum.

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

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by