Dear Users,(adsbygoogle = window.adsbygoogle || []).push({});

the topic MATLAB num2str is closed, therefore I am posting this as a reply to that thread.

The suggestion by marcusl won't work for numbers of various format, but same number of valid digits. Example: The numbers

0.0056

0.0060

0.043

0.050

0.32

0.40

are valid to their last two digits. After converting by num2str(), only three of them will have that precision. The other three will have only one valid digit.

My main goal is to print these values into a plot without loosing information (the number of valid digits).

Does anybody have any suggestion, please?

Cheers,

Milan

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# MATLAB num2str 2

**Physics Forums | Science Articles, Homework Help, Discussion**