MATLAB CSV Import Warping Data -


when import data (numerical matrix of nyse stock data), data isn't loaded properly:

the final part of csv data disp() displayed should -

9.76, 10, 9.99, 9.94, 9.97,9.944,9.95,10,9.956,10.01

what when call disp(importdataresult) -

0.0100 0.0099 0.0099 0.0100 etc..

have got idea why when import data transformed completely? below link contains zipped csv file can see problem (i understand if can't bothered checking out, i'd interested know if same problem applies others' matlab / computers).

https://www.sendspace.com/file/slif0y

the code i'm using is:

function [ c ] = createcov_test() c = csvread('nyse_data_matrix_no_tags.csv'); disp(c); end 

here screenshot of issue: https://s32.postimg.org/os74qfrlx/matlab_screen.png

thank much!

matlab not transforming data. configuration of matlab displaying variables controlled format, default being format short.

an excerpt documentation:

format may used switch between different output display formats of float variables follows:

format short scaled fixed point format 5 digits.

so scaled fixed point format 5 digits mean, lets see

>> = [0.1 10000 100] >> disp(a)    1.0e+04 *      0.0000    1.0000    0.1000 

note 1.0e+04 *, multiplier data in matrix. when displaying large matrix, multiplier hidden (as in case), admittedly can rather confusing.


Comments