MATLAB: How to concatenate the rounded digits of a number and a string

round

Hi everyone,
I am trying to concatenate a rounded number (in the 2nd digit after decimal) and string value, so that:
x= 1.361620214248647
star = '***'
xstar = sprintf('%d%s',round(x,3,'significant'), star)
I would expect the output to be 1.36***, rather than 1.360000e+00***

Best Answer

xstar=sprintf('%.2f%s',round(x,3,'significant'),star)