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에서 Programming Utilities에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!