MATLAB: How to reverse an integer

MATLAB and Simulink Student Suitereverse a number

Hi,I have to reverse a number.Ex.4530 .I have to print this number as 0354 and not as 354.Is there any way to print the number including '0' also.Please help!Thank you.

Best Answer

flip(sprintf('%d',4530),2)
Related Question