saving specific column with all elements from 4 to 5 different matrices in matlab GUI

3 ビュー (過去 30 日間)
Muhammad Haziq
Muhammad Haziq 2019 年 9 月 6 日
コメント済み: Geoff Hayes 2019 年 9 月 6 日
Hi,
I want to save all elements of some specific columns from 4 to 5 different matrices in such a way that all selected coulmns with all elements will save in one array. For this purpose I made a GUI in that from browse button I select a big matrix (let say big matrix 1) and then from edit box I write down the column number one by one and press submit button and save all those selected coulmn with all elements I stored into array.
Now the problem is that, Again I will select some different big matrix (let say big matrix 2)and similarly I want to save all elements of some specific coulmns and want to store in the same array in which I previously stored elements of selected columns from big matrix 1.
its like I select some columns from matrix 1 and also select columns from matrix 2 and concatenate both of them in single array.
check.png
Can anybody help me what should I do
  3 件のコメント
Muhammad Haziq
Muhammad Haziq 2019 年 9 月 6 日
There are two posibilities I am thinking off but unable to implement them or there any other way to do that
One: Array concatenation
I select one big matrix (let say matrix 1) and I select few coulmns from it with all elements and save them in a array. Then again I select another big matrix (let say matrix 2) and again I select few coulmns from it with all elements and then save them in same array
Two: Generating a cell array
I select one big matrix (let say matrix 1) and I select few coulmns from it with all elements and save them in a cell array. Then again I select another big matrix (let say matrix 2) and again I select few coulmns from it with all elements and then save them in same cell array
Geoff Hayes
Geoff Hayes 2019 年 9 月 6 日
Muhammad - if your "big matrices" have different number of rows, then use a cell array to manage all of the columns that you extract from your matrices.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by