Storing/Writing 3D data
조회 수: 2 (최근 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
채택된 답변
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
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!