Why variables are different tha command window values?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
AIKATERINI KOLIOUKOU
am 11 Jan. 2021
Bearbeitet: the cyclist
am 11 Jan. 2021
the variable 'Sdaily' appears different in command window and variables window
why is that
0 Kommentare
Akzeptierte Antwort
the cyclist
am 11 Jan. 2021
Bearbeitet: the cyclist
am 11 Jan. 2021
In the command window, you seem to be highlighting elements 1323:1325. In the variable window, you seem to be highlighting elements 1351:1353.
But, in the command window view, I can see elements 1351-1353, which do appear different. However, you are not showing that in the command window, it is probably also showing an overall multiplier to the entire displayed vector -- in your case I am guessing that multiplier is 1e4. So, all that is happening is the loss of precision in the how the command window is displayed.
Try just typing
Sdaily(1351:1353)
in the command window, and it should be more comparable.
0 Kommentare
Weitere Antworten (1)
Walter Roberson
am 11 Jan. 2021
Give the command
format long g
and look at the variable again in the command window.
Then in the variable browser, use the drop down at the top to change the format to longg
0 Kommentare
Siehe auch
Kategorien
Mehr zu Whos finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!