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 comentarios

Rik
Rik el 16 de En. de 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 el 17 de En. de 2022
And what is the result of urlread itself?
Ramana manohar
Ramana manohar el 22 de En. de 2022
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 .

Iniciar sesión para comentar.

 Respuesta aceptada

Prince Kumar
Prince Kumar el 19 de En. de 2022

0 votos

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 comentario

Ramana manohar
Ramana manohar el 22 de En. de 2022
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

Iniciar sesión para comentar.

Más respuestas (0)

Preguntada:

el 16 de En. de 2022

Comentada:

el 22 de En. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by