View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
google

Join the 15-year community celebration.

Play games and win prizes!

» Learn more

Be the first to rate this file! 10 Downloads (last 30 days) File Size: 2.73 KB File ID: #41042 Version: 1.1
image thumbnail

google

by

 

01 Apr 2013 (Updated )

google.m is a simple shell interface to initiate Google search in Matlab.

| Watch this File

File Information
Description

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.

Acknowledgements

Cprintf Display Formatted Colored Text In The Command Window inspired this file.

This file inspired Search: Web Search From The Command Line.

Required Products MATLAB
MATLAB release MATLAB 7.10 (R2010a)
Other requirements windows
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Updates
12 Apr 2013 1.1

included an action script, so you can open a URL without leaving your hand from the keyboard.

Contact us