Taking the first element of each matrix

2 ビュー (過去 30 日間)
PIRIL
PIRIL 2014 年 4 月 3 日
回答済み: Azzi Abdelmalek 2014 年 4 月 3 日
Hi all,
I have 128 1x5000 and 128 1x10000 matrices. I want to take the first element of each matrix and write it down to a new output file with the matrix name next to it.
For instance,
A=[1,2,6......] B=[2,2,4,8,...] . . . Z=[3,8,9......]
Output=[A,1;B,2;....;Z,3]
Many thanks !

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 4 月 3 日
A=[1 2 3]
B=[2 3 4]
out={sprintf('A%d',A(1)), sprintf('B%d',B(1))}

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by