How to store matrices of different sizes on a variable.
4 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
采纳的回答
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 Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!