Matlab有办法改​变load进来的变量​的变量名吗?

原来save了一个变量a,load进来之后它还叫做a,但是由于之前命名的问题,a这个名字不够直白,需要改名字,但是a这个矩阵很大,无法用矩阵赋值的方法,会内存溢出。
我想改变a的名字,有没有办法?

 Akzeptierte Antwort

0 Stimmen

load a.dat
b=a;
clear a;
这个只会造成额外的一点点内存

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB 快速入门 finden Sie in Hilfe-Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!