The google.m is a shell interface designed to initiate Google searches and display the first few results in the Matlab command window. The function takes varargin as query terms and uses regular expressions to parse the text returned by Google. One of the interesting features is that you can input misspelled words, as Google will automatically correct them. google.m also caches results to prevent repeated queries from accessing Google’s servers. It always displays cached results, though users can clear the cache when needed. The idea behind google.m was inspired by goosh.org.

Usage Example:

- google math

- google matlab files

- google matlab Chen Chao Wei

Press "Enter" 3 times to exit the search.

Other Considerations:

1. Tested only in Windows environments. Mac users may need to modify filesep.

2. A Google API key may be required.

3. Be mindful of the usage of cprintf.