MATLAB: Change workspace variable name

MATLABrenamescriptsimulinkvariableworkspace

Hello,
I have lot of workspace variables for a Simulink project and I would like to rename all of them in a Matlab script. I know how to retrieve the variable contents but I don't know how to rename the variable. Could you help me?

Best Answer

If you want to rename A to B
B=A
clear A