How to read the date from url link

I am generating the data into a weburl, but I am unable to read the date into the matlab. Can any one tell me the code syntax for the same .
url genrated internally : http://127.0.0.1/?V(out)%200,50,.1
data snapshow at url is shown below

4 Comments

Something like websave perhaps?
HI,
I am generating the data using NL5 software. To get the data i am running the simulation then the scope data is transferred to "http://127.0.0.1/?V(out)%200,50,.1" .
My objective :
The data shown in the snapshot need to be transferrred on to the MATLAB workspce.
http data ---transferred ----> Matlab workspce.
However, I have used the following command in the matlab
Header='http://127.0.0.1/?';
Cmd4=[Header,'V(out)%200,50,.1'];
.....inside for loop
Graph(k,:)=str2double(urlread(Cmd4));
but still i am unable to read the data
And what is the result of urlread itself?
Thanks Rik, Actually the there is an issue with the web settings in the matlab.
I have kept proxy setting in matlab, after removing the settings it worked.
I can able to read the required data .

Sign in to comment.

 Accepted Answer

Prince Kumar
Prince Kumar on 19 Jan 2022
Hi,
You can do it using webread or urlread.Then you'll have to parse it yourself, manually, to extract the exact part of the page you want.
Please refer to the following MATLAB answers for more informtion
I hope you find the above example useful.

1 Comment

Dear Prince
I have kept proxy setting in matlab , after removing the settings it worked.
I can able to read the required data .
Thanks for the support

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!