Loading multiple matlab files in to a structure
显示 更早的评论
I'm trying to load multiple matlab files in to a structure using
for m = 1:numel(data)
S(m,1) = load(data{m});
end
Where data is the file path. However i have been encountering the following message.
"Subscripted assignment between dissimilar structures."
Any help appreciated
1 个评论
Rik
2017-11-2
All your .mat files must contain the same variables, otherwise an error like this is expected. You might try first loading it to a cell to get an idea of what is going wrong (or use breakpoints).
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 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!