MATLAB: Another quick question about string read

gesNum = 6;
I want to get modelsq_6 other than modelsq_gesNum by using : sprintf('%s_%s', 'modelsq', 'gesNum'); I know this is wrong way, so how should I do?

Best Answer

EDIT
sprintf('%s_%d', 'modelsq', gesNum);