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 Commenti

Rik
Rik il 16 Gen 2022
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
Rik
Rik il 17 Gen 2022
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 .

Accedi per commentare.

 Risposta accettata

Prince Kumar
Prince Kumar il 19 Gen 2022

0 voti

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 Commento

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

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by