matlab-变量保存到文件以及读取
程序员文章站
2022-05-12 19:08:20
...
>> x=7
x =
7
>> y=7+9*i
y =
7.0000 + 9.0000i
>> z=1-5*i
z =
1.0000 - 5.0000i
>> mkdir ("e:\","mytemp")
>> mkdir ('e:\','mytemp')
>> cd e:\mytemp
>> save temp1 x y z
>> y=9
y =
9
>> y
y =
9
>> load temp1
>> who
Your variables are:
x y z
>> whos
Name Size Bytes Class Attributes
x 1x1 8 double
y 1x1 16 double complex
z 1x1 16 double complex
>>
上一篇: 算法下午茶系列-美好的下午茶时光
推荐阅读