필터 지우기
필터 지우기

how to convert a signal (1x200) into a square matix???

조회 수: 6 (최근 30일)
suganya saravanan
suganya saravanan 2016년 8월 8일
댓글: Satishkumar Aruljothi 2016년 8월 8일
i have a signal with data length (1x200). how to convert that into square matrix? will the shape of the signal change after converting into matrix? without changing the signal shape is it possible to convert it to matrix.
  댓글 수: 1
Satishkumar Aruljothi
Satishkumar Aruljothi 2016년 8월 8일
Your Question is not clear.Could you please clarify the following things 1.what is the nature of your signal ., discrete ?.(Could you please share signal log if you have) 2.What is your final output form ? if it is Square ,can you give some example ?

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

답변 (2개)

KSSV
KSSV 2016년 8월 8일
You can convert an array of m*n elements into a matrix using reshape... read about reshape......
Eg:
data = rand(100,1) ;
matrix = reshape(k,[10,10])
Note that to reshape an array into matrix, the number of elements must be equal.

Walter Roberson
Walter Roberson 2016년 8월 8일
200 is not a square, so you cannot arrange the values in a square matrix. The smallest square that is at least 200 would be 225, which is 15*15
If you have the Signal processing toolbox, look at using buffer()

카테고리

Help CenterFile Exchange에서 Numeric Types에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by