필터 지우기
필터 지우기

How to store matrices of different sizes on a variable.

조회 수: 5 (최근 30일)
Reinhardt RADING
Reinhardt RADING 2022년 2월 7일
댓글: Reinhardt RADING 2022년 2월 7일
SNRdB_x(SNRdB_x(cc,:)>SNRdB(cc));
This line returns matrices of different sizes, for example: 1x167, 1x187, 1x168, 1x263,...until cc
where cc is a for loop from 1 to 10.
I have stored the returned matrices in variable.
high_x(cc,:)= SNRdB_x(SNRdB_x(cc,:)>SNRdB(cc));
I keep getting an error that i cant store different matrices in that variable. Where am i making mistakes? What should i do to rectifymy mistakes?
Thank you in advance.

채택된 답변

KSSV
KSSV 2022년 2월 7일
Try saving them into a cell array as the dimensions varies.
high_x{cc}= SNRdB_x(SNRdB_x(cc,:)>SNRdB(cc));

추가 답변 (0개)

카테고리

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

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by