create a matrix from multiple images

1 回表示 (過去 30 日間)
Shabnam M
Shabnam M 2020 年 9 月 9 日
コメント済み: Shabnam M 2020 年 9 月 10 日
Hello,
I have a question regarding to save a matrix from multiple images.
In fact, I have 5000 images named as first_00001, first_00002, first_00003, .... I want to read them and then create a matrix as follows:
if first_00001 assumed A[m*n]
first_00002 assumed B[m*n]
first_00003 assumed C[m*n]
I want to get a matrix that is MM and its first column is [A11
B11
C11]
and etc. until all arrays are read.
Thanks for spending your time
  2 件のコメント
Ameer Hamza
Ameer Hamza 2020 年 9 月 9 日
Can you further explain, perhaps, use three 3 matrices as an example and show how you want to arrange the elements and what is the expected output?
Shabnam M
Shabnam M 2020 年 9 月 9 日
thanks for your response,
for example if A=[0 1 2
3 4 5]
and B=[6 7 8
9 10 11]
and C=[12 13 14
15 16 17]
now I want to get MM=[0 3 1 4 2 5
6 9 7 10 8 11
12 15 13 16 14 17]

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

採用された回答

Walter Roberson
Walter Roberson 2020 年 9 月 9 日
MM = [A(:).'; B(:).'; C(:).']
  1 件のコメント
Shabnam M
Shabnam M 2020 年 9 月 10 日
Thank you!!

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by