How to stack .mat files?

2 ビュー (過去 30 日間)
Chathu
Chathu 2016 年 4 月 28 日
コメント済み: Chathu 2016 年 4 月 30 日
Suppose in one of my data set, i have 20 .mat files.
Now, i want to stack all 20 .mat files together.
The issue is though they are in the same data set, size of each .mat file differs (not a huge variation though). As my final objective is to create a 3D model, how can i stack those .mat files together in order to open in another visualization software? Kindly (atleast) send me a link/documentation which help me to resolve this issue.

採用された回答

Walter Roberson
Walter Roberson 2016 年 4 月 28 日
You cannot stack .m files. You might be able to stack variables that are stored in the files.
However, if the variables are not all the same size, you need to define how they are to align. Should they be rescaled (as if they are images of different resolution), or should the center all be in the same place and the smaller ones should be padded on all sides, or should the top left edge be aligned and the bottom right be padded on the smaller, or are these images containing features that have to be "registered" (lined up), or ... ?
  5 件のコメント
Chathu
Chathu 2016 年 4 月 29 日
i am wondering why i am getting an error? (eg: Subscripted assignment dimension mismatch)
So its possible to stack the variable K now, is it? Thank you in advance.
Chathu
Chathu 2016 年 4 月 30 日
i was able to get away with the error by commenting out the foll: data(:,:,K) = thisvar;

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePoint Cloud Processing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by