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 Center および MATLAB AnswersData 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