load2var

버전 1.0.0.0 (530 Bytes) 작성자: Michael Robbins
Load a specific variable from a mat file and returns it.
다운로드 수: 2.1K
업데이트 날짜: 2004/11/18

라이선스 없음

LOAD2VAR loads a specific variable
from a mat file and returns it.
If no variable name is provided,
the first variable is chosen.

Made as an example for "loading mat-files!"

USAGE:
>> a=magic(3);
>> b='not me';
>> save('tmp');
>> clear all;
>> c=load2var('tmp','a')

c = 8 1 6
3 5 7
4 9 2

>> c=load2var('tmp','b')

c = not me

>> c=load2var('tmp')

c = 8 1 6
3 5 7
4 9 2

>> c=load2var('tmp','d')

c = []

IT'S NOT FANCY BUT IT WORKS

인용 양식

Michael Robbins (2024). load2var (https://www.mathworks.com/matlabcentral/fileexchange/6303-load2var), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R14SP1
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Data Import and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

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