load2var

Load a specific variable from a mat file and returns it.
2,1K download
Aggiornato 18 nov 2004

Nessuna licenza

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

Cita come

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

Compatibilità della release di MATLAB
Creato con R14SP1
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Data Import and Analysis in Help Center e MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
1.0.0.0