how can i concatenate matrices of diffrent data types and dimensions?

4 ビュー (過去 30 日間)
ck
ck 2016 年 5 月 18 日
回答済み: Image Analyst 2016 年 5 月 18 日
concatenating matrices
  1 件のコメント
the cyclist
the cyclist 2016 年 5 月 18 日
This isn't Twitter. Please describe what you are trying to do in some detail, to help us help you.

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

回答 (2 件)

Todd Leonhardt
Todd Leonhardt 2016 年 5 月 18 日
You are probably looking for a "cell array": http://www.mathworks.com/help/matlab/cell-arrays.html
These are arrays that can contain data of varying types and sizes.
If you have two matrices, say M1 and M2, you can combine them into a cell array like so:
C = {M1 M2}
or
C = {M1; M2}

Image Analyst
Image Analyst 2016 年 5 月 18 日

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by