% 注意 存储为 .mat 文件时,变量名也存入文件中,再次载入 .mat文件时,变量名不是文件名xx,而是存储前的变量命 v
>> save xx.mat v
>> load xx.mat
>> who
Variables in the current scope:
a v x y
>> clear x
>> who
Variables in the current scope:
a v y
>> load xx.mat
>> who
Variables in the current scope:
a v y
>> clear v
>> who
Variables in the current scope:
a y
>> load xx.mat
>> who
Variables in the current scope:
a v y
% 存储为ascii格式时,再次载入时,变量名就是文件名。
>> save x.txt a -ascii
>> save a.txt a -ascii
>> who
Variables in the current scope:
a v y
>> clear a
>> who
Variables in the current scope:
v y
>> load x.txt
>> who
Variables in the current scope:
v x y
>> load a.txt
>> who
Variables in the current scope:
a v x y
转载请注明原文地址:https://ipadbbs.8miu.com/read-18736.html