"Octavio Garcia" wrote in message <odcb8b$7m4$
1...@newscl01ah.mathworks.com>...
> Changing http by https, when you use urlread works for me, at least by now, as showed in the example bellow. For people that use fetch or another function of Matlab via Java, need to find the url and changed it I supose.
>
> '
https://ichart.finance.yahoo.com/table.csvs=IBM&a=.........
i have the same problem last days nothing helps that works for me:
function [date, open, high, low, close, volume, adjclose ] = get_yahoo_hist_data(ticker)
[start_year, start_month, start_day] = datevec(now-1200);
[this_year, this_month, this_day] = datevec(now);
url_string = '
http://chart.finance.yahoo.com/table.csv?';
url_string = strcat(url_string, 's=', upper(ticker));
url_string = strcat(url_string, '&a=', num2str(start_month-1));
url_string = strcat(url_string, '&b=', num2str(start_day));
url_string = strcat(url_string, '&c=', num2str(start_year));
url_string = strcat(url_string, '&d=', num2str(this_month-1));
url_string = strcat(url_string, '&e=', num2str(this_day));
url_string = strcat(url_string, '&f=', num2str(this_year));
url_string = strcat(url_string, '&g=d&ignore=.csv');
data=webread(url_string);
data=table2cell(data);
open=cell2mat(data(:,2));
high=cell2mat(data(:,3));
low=cell2mat(data(:,4));
close=cell2mat(data(:,5));
volume=cell2mat(data(:,6));
adjclose=cell2mat(data(:,7));
date=zeros(length(close),1);
for i=1:length(close)
date(i,1)=datenum(data{i,1});
end
end