What is the for loop that I can use to do the following then save the results as .mat file?
1 次查看(过去 30 天)
显示 更早的评论
What is the for loop that I can use to do the following then save the results as .mat file?
I have 30 iterations and in each iteration I want to save the following:
Image with size 120*120 *1* 6000
Labels with size: 1*6000
E= 1*6000
and I will repeat the 30 iterations for 12 experiments (12 run).
Which means in each run will get the above files 30 times
采纳的回答
Dyuman Joshi
2023-11-6
Preallocate arrays according to the final size and the data type and modify the arrays iteratively.
Use indexing to obtain the corresponding data.
8 个评论
Dyuman Joshi
2023-11-6
编辑:Dyuman Joshi
2023-11-6
@M - Does your PC have a 64 bit processor?
Also, check the setting of version of MAT-Files in your MATLAB - https://in.mathworks.com/help/matlab/import_export/mat-file-versions.html
Make sure the selected version is MAT-File Version 7.3
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Structures 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!