# MATLAB: Add values to one value

combine

Hi,
I've got 4 values: D=1 E=3 F=2 G=9
and I want to combine them to 1 value: Total=DEFG (in this example: 1329)
Anyone an idea how I could fix this?

D=1;E=3;F=2;G=9;x = str2num([num2str(D),num2str(E),num2str(F),num2str(G)])