How to Load Two MAT Files with Variables of Similar Names?
2 次查看(过去 30 天)
显示 更早的评论
I have a MAT File of variables A, B, and C. I have another MAT File with variables A, B, and C. Although the names of variables are the same, their contents are different. Is there any way to load both MAT files simultaneously to Workspace? I want to do that because MATLAB loads and clears the data of the MAT Files for each loop and the calculation time becomes so long.
0 个评论
采纳的回答
Steven Lord
2017-2-6
Call load with an output argument. The variables will be loaded as fields of the struct array that load call returns.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Workspace Variables and MAT-Files 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!