Opening Websites and using google
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Rainaire Hansford
am 20 Dez. 2019
Beantwortet: Image Analyst
am 20 Dez. 2019
Hello everyone,
So I asked earlier if there was a way to search for something on Google using MATLAB. The concept is that I would ask the code to look for cat pictures using Google and the MATLAB browser would open up with cat pics on Google. Is there a way to do that please?
Also is there a way to input a website that would open whatever site I input with one MATLAB code. So this is how far I got:
any(strcmpi(res,{'Open website','Open page','Open site'}))
NET.addAssembly('System.Speech');
obj = System.Speech.Synthesis.SpeechSynthesizer;
obj.Volume = 100;
Speak(obj, 'What website would you like to go to ');
url=input('Enter website ')
NET.addAssembly('System.Speech');
obj = System.Speech.Synthesis.SpeechSynthesizer;
obj.Volume = 100;
Speak(obj, 'Got ya');
web(url)
I had a feeling this wouldn't work, but I would input a website or any website and the MATLAB browser will open with that website.
Please help and thank you
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 20 Dez. 2019
Try this:
webSite = 'http://mathworks.com';
web(webSite, '-browser');
It will open the website in a new tab using the default web browser.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Google finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!