[Scilab-users] Loading data from URL

prateek papriwal papriwalprateek at gmail.com
Mon Jul 29 07:51:21 CEST 2013


Check out this http://forge.scilab.org/index.php/p/JIMS/ ... This might
help you !!


On Sun, Jul 28, 2013 at 9:50 PM, stef296 <stef.schmidt at gmx.de> wrote:

> 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.
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>



-- 
Thanks and Regards
Prateek Papriwal
B.Tech, Electrical
IIT Delhi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20130729/2993f5b6/attachment.htm>


More information about the users mailing list