how to do manipulation with decimal numbers in array
Show older comments
I want to do the following manipulation with numbers in my arrays.
Let's assume we have
num = [0.23, 0.53, 0.04, 0.56];
Generate a number by taking most significant value on the decimal parts of each number in array one by one, then again do the same with the next decimal part. An get the number of 25053346
In other words, num = [0.a1a2, 0.b1b2, 0.c1c2, 0.d1d2]; and find a1b1c1d1a2b2c2d2
Thanks in advance,
Accepted Answer
More Answers (0)
Categories
Find more on Data Types 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!