Extract vector from math file
16 次查看(过去 30 天)
显示 更早的评论
Hello! I saved the file in mat format, but it is very large, can I highlight a specific part?
load('C:/ABCdepobv.mat');
0 个评论
回答(2 个)
waqas
2020-7-23
You can define the variable which you want to extract:
load('ABCdepobv.mat','B');
More details on saving and loading .MAT files is provided in the link: https://www.mathworks.com/help/matlab/import_export/load-parts-of-variables-from-mat-files.html
0 个评论
Arthur Roué
2020-7-23
You can use the matfile function to access and change variables in MAT-file without loading file into memory
matObj = matfile('C:/ABCdepobv.mat')
myVar = matObj.myVar
In this example, myVar is a variable in your MAT-File
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!