cycle = 42;
minute = 24;
title(sprintf('cycle = %.2f, minute = %.2f', cycle, minute))
Change the format string to get the result you want.
EDIT — (23 Mar 2022 at 4:53)
Corrected typographical error.
.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!