How can I make sure that Matlab does not change the values of array in the workspace?

1 view (last 30 days)
I got some values using fdatool, and exported them to matlab.But when I try to manipulate values, I see that workspace values are
changed slightly, even though I want them to stay exactly the same.
The value in the first cell is displayed as 0.313 but when double click that it becomes 0.03125
When I type Num(1,1) in the command window as you can see the value is displayed as 0.0313 although it is 0.03125
How can I reach the exact value?
Thanks in advance, Aydin Özcan

Accepted Answer

Geoff Hayes
Geoff Hayes on 4 Apr 2015
Aydin - MATLAB isn't changing the values, it is just that how they are displayed (the format) is slightly different. In the Command Window, type
format long g
and then check
Num(1,1)
What do you observe?

More Answers (0)

Categories

Find more on Text Analytics Toolbox in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!