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

1 回表示 (過去 30 日間)
Yussif M. Awelisah
Yussif M. Awelisah 2019 年 10 月 8 日
編集済み: Stephen23 2019 年 10 月 9 日
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 Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by