{"id":232,"date":"2008-07-14T07:06:15","date_gmt":"2008-07-14T12:06:15","guid":{"rendered":"https:\/\/blogs.mathworks.com\/desktop\/2008\/07\/14\/browsing-vs-searching\/"},"modified":"2016-04-04T10:06:06","modified_gmt":"2016-04-04T14:06:06","slug":"browsing-vs-searching","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/community\/2008\/07\/14\/browsing-vs-searching\/","title":{"rendered":"Browsing vs Searching"},"content":{"rendered":"<p>One of our big team efforts is making information in MATLAB more accessible. When figuring out how to the present and teach new features, we often wind up at the &#8220;browsing versus searching&#8221; discussion (i.e. what are users preferred methods for finding information). The following is a list of the current ways to browse and search for functions, but we are investigating new ones and are always curious how are customers find out (or don&#8217;t find out) how to use our products.<\/p>\n<p>Browsing is great for exploring to find new features, gaining insight in to how we organize things, and for when you just don&#8217;t know exactly what you&#8217;re looking for. When it comes to finding functions, I quickly thought of two ways of browsing: the MATLAB documentation and tab completion.<\/p>\n<p><strong>Function list in the documentation<\/strong><br \/>\nFor me, when I want to find a function nine times out of ten, I&#8217;ll go to the &#8220;Function Reference&#8221; (&#8220;Functions &#8211; By Category&#8221; in earlier versions) section of the MATLAB documentation:<\/p>\n<div align=\"center\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone\" src=\"https:\/\/blogs.mathworks.com\/images\/desktop\/michael_katz_browsing_vs_searching\/doc_small.jpg\" alt=\"Function Reference\" width=\"500\" height=\"501\" border=\"0\" \/><\/div>\n<p><strong>Tab completion<\/strong><br \/>\nAs we <a href=\"https:\/\/blogs.mathworks.com\/community\/2007\/04\/27\/tab-completion-will-save-your-fingers\/\">previously described<\/a>, you can use tab completion to find all functions that start with a particular letter (&#8220;sl&#8221; is a good bet for simulink functions) or to find methods of an object after a period &#8220;.&#8221;.<\/p>\n<p>Searching is browsing&#8217;s non-linear cousin: the search engine sifts through information to find the thing you&#8217;re looking for. There&#8217;s a few ways to go about searching for functions, each provides its own powers and flexibility but requires good querying skills to narrow down the results.<\/p>\n<p><strong>MATLAB documentation<\/strong><br \/>\nYou can search in the help browser&#8217;s search bar. Once you understand the documentation&#8217;s literary style you can find things quite effectively. We previously blogged about how to <a href=\"https:\/\/blogs.mathworks.com\/community\/2007\/10\/29\/filter-your-help\/\">narrow the search results<\/a>.<\/p>\n<p>You also have two documentation search options from the command line <a href=\"https:\/\/www.mathworks.com\/help\/matlab\/ref\/docsearch.html\"><tt>docsearch<\/tt><\/a> which performs the same search as the help browser search bar, and displays the results in the help browser, and <a href=\"https:\/\/www.mathworks.com\/help\/matlab\/ref\/lookfor.html\"><tt>lookfor<\/tt><\/a> which searches the H1 lines of all the m-files in your path. The first time you run this will be the slowest as it will have to search your path. <tt>Lookfor<\/tt> and <tt>docsearch<\/tt> might give different results depending how comprehensive the H1 line of the M-file is. <tt>lookfor<\/tt> will also search your own m-files if they are on the path.<\/p>\n<p><strong>Google<\/strong><br \/>\nOf course, you can always use Google&#8217;s search engine to search our <a href=\"http:\/\/www.google.com\/search?hl=en&amp;q=site%3Ahttp%3A%2F%2Fwww.mathworks.com%2Faccess%2Fhelpdesk%2Fhelp+plot&amp;btnG=Google+Search\">online documentation<\/a>. Just append <tt>site:https:\/\/www.mathworks.com\/access\/helpdesk\/help<\/tt> to your search to narrow the results to the MATLAB doc.<\/p>\n<p>While we&#8217;re on the Google topic, you can search the whole internet for text in M-files using Google&#8217;s codesearch, again just append <tt>lang:matlab<\/tt> to the search to just search M-files.<\/p>\n<p><strong>Find Files<\/strong><br \/>\nWhen you want to search your own non-internet based code, you can use Find Files. We previously discussed Find Files in this <a href=\"https:\/\/blogs.mathworks.com\/community\/2007\/09\/10\/where-did-my-m-file-run-off-to\/\">post<\/a>.<\/p>\n<div align=\"center\"><a href=\"https:\/\/blogs.mathworks.com\/images\/desktop\/michael_katz_browsing_vs_searching\/find.jpg\"><img decoding=\"async\" src=\"https:\/\/blogs.mathworks.com\/images\/desktop\/michael_katz_browsing_vs_searching\/find_small.jpg\" alt=\"Function Reference\" border=\"0\" \/><\/a><\/div>\n<p>We have many great new features in the pipeline to enhance both browsing and searching. In the meantime tell us how you go about finding new functions to use.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of our big team efforts is making information in MATLAB more accessible. When figuring out how to the present and teach new features, we often wind up at the &#8220;browsing versus&#8230; <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/community\/2008\/07\/14\/browsing-vs-searching\/\">read more >><\/a><\/p>\n","protected":false},"author":38,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[5,11,17],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/posts\/232"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/users\/38"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/comments?post=232"}],"version-history":[{"count":1,"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/posts\/232\/revisions"}],"predecessor-version":[{"id":3470,"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/posts\/232\/revisions\/3470"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/media?parent=232"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/categories?post=232"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/tags?post=232"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}