フィルターのクリア

Storing/Writing 3D data

5 ビュー (過去 30 日間)
mehtap agirsoy
mehtap agirsoy 2021 年 5 月 29 日
編集済み: mehtap agirsoy 2021 年 5 月 30 日
Hey, I would like to calculate mean values of certain files. For example, for the first iteration I need to store values of B35 to B41 files and then calculate the average of them. My code does not store the previous data and just takes the new and calculates the average. My data(:,:,i) should store the old values but not.I really get stucked and could not find a solution. Could you please give me some advice? Thanks in advance.
  3 件のコメント
mehtap agirsoy
mehtap agirsoy 2021 年 5 月 29 日
I could not upload, I have .dat files and these are not supported. If it is possible for you to share your email I can send you the files. Thanks
Walter Roberson
Walter Roberson 2021 年 5 月 29 日
You can zip files and attach the zip

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

採用された回答

Walter Roberson
Walter Roberson 2021 年 5 月 30 日
I have attached cleaned up code that is more careful about filenames and about potentially missing data, and it saves data more carefully.
However...
  • because you were saving data(:,:,i) I saved all the data into a cell array filedata(), in case you want to do something with it later. But this is a questionable decision as you overwrite data(:,:,i) for each j iteration, suggesting you do not really need to store the file data after you have written the tekplot
  • your folder structure is weird, with multiple levels of redundancies
  1 件のコメント
mehtap agirsoy
mehtap agirsoy 2021 年 5 月 30 日
編集済み: mehtap agirsoy 2021 年 5 月 30 日
Hi Walter, I really appreciate it. I am not comfortable with matlab as you can see from my code. I agree my folder structure is quite weird I need to think about it. Again many many thanks.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Import and Analysis についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by