Is it possible to refresh a web page I opened with Matlab?

조회 수: 17(최근 30일)
Andrew Reibold
Andrew Reibold 2013년 6월 3일
편집: Andrew Reibold 2014년 12월 2일
Example: I open a webpage using
[stat,h] = web('')
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.


Thomas 2013년 6월 3일
편집: Thomas 2013년 6월 3일
Put it in a while loop
while ii==1
[stat,h] = web(''); % open site
pause(10) % wait 10 sec
You will have to Ctrl c in command window to kill the loop
  댓글 수: 1
Andrew Reibold
Andrew Reibold 2013년 6월 3일
Thanks! This is a good idea, however there is one issue.
When I open this particular webpage I need to enter a password. I noticed when I use web in a loop I have to re-enter my password, but when I refresh the page (manually) I don't have to.
This is why I was trying to figure out if there was just a refresh command.
I should have been more clear, but thank you!

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by