Close a web browser from script
조회 수: 14 (최근 30일)
이전 댓글 표시
I'm doing a project where I open a broswer (default browser is chrome) from matlab using...
url = 'www.google.com';
web(url)
That opens Chrome and now if I want to close the browser how would I do that.
For my project I'm opening a different page and pulling data from it but I need to open 60 variations of that page, so I'm looking for a way to not have 60 websites up when the program has finished running. Thank you for the help!!
댓글 수: 0
답변 (1개)
Kritika Bansal
2020년 1월 16일
Hi,
You can do that by using the following command in MATLAB
!taskkill -f -im chrome.exe
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Environment and Settings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!