load2var
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
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
Versione | Pubblicato | Note della release | |
---|---|---|---|
1.0.0.0 |