2017/10/21

Matlab: Save and load variables/matrices in MAT file

To store and then read variables/matrices with Matlab, use the save and load commands with a *.mat file.
Example:

>> var1 = 1;
>> var2 = 2;
>> save var.mat var1 var2
>> clear
>> load var.mat


Related Information:

Matlab: Clear Commands (Study EECC)

沒有留言:

張貼留言