[Scilab-users] Loading data from URL
stef296
stef.schmidt at gmx.de
Sun Jul 28 18:20:16 CEST 2013
Hi guys,
In Matlab you can do some like the below to read data from a CSV file at a
given URL. Anybody know how to accomplish this in Scilab?
Thanks.
Stef
-----------------------------
url_string = 'http://ichart.finance.yahoo.com/table.csv?';
url_string = strcat(url_string, '&s=', mtlb_upper(stock_symbol) );
url_string = strcat(url_string, '&d=', mtlb_num2str(this_month-1) );
url_string = strcat(url_string, '&e=', mtlb_num2str(this_day) );
url_string = strcat(url_string, '&f=', mtlb_num2str(this_year) );
url_string = strcat(url_string, '&g=d&a=0&b=1&c=', start_year);
url_string = strcat(url_string, '&ignore.csv');
//% Open a connection to the URL and retrieve data into a buffer
buffer = java.io.BufferedReader(...
java.io.InputStreamReader(...
openStream(...
java.net.URL(url_string))));
//% Read the first line (a header) and discard
dummy = readLine(buffer);
--
View this message in context: http://mailinglists.scilab.org/Loading-data-from-URL-tp4027104.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
More information about the users
mailing list