extract the number with only the first decimal number
12 views (last 30 days)
Show older comments
Alberto Acri
on 20 Sep 2023
Commented: Alberto Acri
on 20 Sep 2023
I have to extract the number with only the first decimal number
Examples:
1.23 -> 1.2
2.49 -> 2.4
4.77 -> 4.7
7.51 -> 7.5
2 Comments
Dyuman Joshi
on 20 Sep 2023
Extract as in? Do you want to store it in string/char/cell array of character vectors?
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!