getfilevar

버전 1.6.0.0 (1.9 KB) 작성자: Sam Roberson
Allows user to define the name of unknown variable from .mat file and load it into the workspace.
다운로드 수: 181
업데이트 날짜: 2011/11/1

라이선스 보기

getfilevar is an alternative to load. It accepts the name of a .mat file, identifies the variables in the file and allows the user to choose a single variable to load. This avoids use of the convention struct=load(filename,variable), which requires the user to know the name of the variable in subsequent lines of code. getfilevar allows the user to define the variable name before loading and allows for some degree of 'blind' coding.

인용 양식

Sam Roberson (2024). getfilevar (https://www.mathworks.com/matlabcentral/fileexchange/33447-getfilevar), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2011b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Workspace Variables and MAT-Files에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.6.0.0

Bugfix - filename now loading properly for all input options.

1.5.0.0

Update to deal with list size falling off the edge of the screen.

1.3.0.0

Bugfix: uigetfile in previous issue did not pass complete file path to filename.

1.2.0.0

getfilevar can now be called with no input arguments, allowing the user to select a file interactively from a file browser.

1.1.0.0

Now includes output of original variable name and the option to define the prompt for the list dialogue.

1.0.0.0