- #1

- 4

- 0

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