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 Kommentare

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

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Prince Kumar
Prince Kumar am 19 Jan. 2022

0 Stimmen

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 Kommentar

Ramana manohar
Ramana manohar am 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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by