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)
沒有留言:
張貼留言