请问一下,在matlab里面怎么用?
我在matlab里面,直接运行,出来这个
>> getstockdata ??? Undefined function or variable 'snames'.
Error in ==> D:\MATLAB\work\download\StockDL\getStockData.m On line 12 ==> for i=1:size(snames,1)
而我直接点击mat文件,出来这个
>> load('D:\MATLAB\work\download\StockDL\SP500_symbols.mat') ??? Error using ==> load Unable to read MAT file D:\MATLAB\work\download\StockDL\SP500_symbols.mat
File may be corrupt.
对不起,我只有matlab运行程序的体验,只懂皮毛,也不会编程,所以,问题会比较低级。
谢谢!
原帖由 EarthJade 于 2008-7-28 01:34 发表 here you go: a matlab script for downloading daily data from yahoo. the program will save the data into excel file. Yes, if you change the code slight, you can save it into txt file, for example. a ...
|