how to loop through a matrix one by one through an entire data and save results

조회 수: 1 (최근 30일)
I am working with the attached code and data but a single matrix works perfectly but refuses to work on my total matrix data of 231 samples.
Each matrix has a size 1 x 500 and the total matrix data has size 231 x 500.
How can I run this data (231 x 500) in my code without errors like( Horzcat or index matrix exceeds dimensions).
Attached is the one matrix data and the total matrix data.
I will be more than grateful for your support.
  댓글 수: 6
Walter Roberson
Walter Roberson 2019년 10월 9일
Unless you have modified your requirements, I have no further ideas that fit within changes that you are willing to make. I already outlined what I saw as the way forward, if I recall correctly.
Yussif M. Awelisah
Yussif M. Awelisah 2019년 10월 9일
I am grateful for your time and concern.
The ideas you gave was considered and applied. The error of ''Index exceeds matrix dimensions occured'' after I looped through and used the logical indexing. I dont know if something is still wrong.
I dont know if my requirement is clear enough. I understand the matrix mismatch is what is causing the error and I want a way I can run the 231 x 500 matrix data using the data attached. The single matrix data works.
I hope you can run both data and understand the error clearer.

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

답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by