Is it possible to refresh a web page I opened with Matlab?
Mostra commenti meno recenti
Example: I open a webpage using
[stat,h] = web('www.cnn.com')
and I need to refresh it every 10 seconds. Is there a command to refresh the webpage?
Additional Note: The page that I need to refresh requires I enter a password my first visit. It is fine (and I prefer) to enter the password the first time manually, then just let the function run and 'refresh' the page every 10 seconds or so. However, I need to 'refresh' the page instead of just continuously reopening it with web (in a loop). If I open it with web in a loop, it requires a password entry each time.
Risposte (1)
Put it in a while loop
ii=1;
while ii==1
[stat,h] = web('www.cnn.com'); % open site
pause(10) % wait 10 sec
end
You will have to Ctrl c in command window to kill the loop
1 Commento
Andrew Reibold
il 3 Giu 2013
Categorie
Scopri di più su Web Services in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!