# MATLAB: Renaming variable loaded from a file

varibles renaming

Hello, I have 4 .mat files including tens of variables of the same name. How I can rename the variables after loading each file in a new script file. I have read similar link but didn't work well.
Thanks

A = load('A.mat');B = load('B.mat');
A.x         % ‘x’ from A.matB.x         % ‘x’ from B.mat