google.m is a shell interface to initiate Google search and display first few results in Matlab Command Window. The function treats varargin as the query word(s) and uses regular expression to analyze the text returned by Google. One of the fun parts is you can type typos, since Google corrects spelling.
google.m keeps cache so to prevent bugging Google from the same query. It always displays cache result. Users are allowed to clear the cache.
google.m is inspired by goosh. (goosh.org)
Example usage:
google mathworks
google matlab file xechange
google matlab chaowei chen
exit a search by hitting "Enter" 3 times.
Other notes:
1. only tested in Windows environment.
Mac users may need to revise filesep.
2. May require to obtain a Google API key
3. cautions from cprintf if used.
Cita come
Chaowei Chen (2024). google (https://www.mathworks.com/matlabcentral/fileexchange/41042-google), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- MATLAB > Data Import and Analysis > Data Import and Export > Web Access and Streaming > Web Services >
- MATLAB > External Language Interfaces > Other languages > Google >
Tag
Riconoscimenti
Ispirato da: cprintf - display formatted colored text in Command Window
Ispirato: SEARCH: Web search from the command line
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.