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 commentaires

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

Connectez-vous pour commenter.

 Réponse acceptée

Prince Kumar
Prince Kumar le 19 Jan 2022

0 votes

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 commentaire

Ramana manohar
Ramana manohar le 22 Jan 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

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by