{"appState":{"pageLoadApiCallsStatus":true},"categoryState":{"relatedCategories":{"headers":{"timestamp":"2025-04-17T16:01:07+00:00"},"categoryId":33604,"data":{"title":"MATLAB","slug":"matlab","image":{"src":null,"width":0,"height":0},"breadcrumbs":[{"name":"Technology","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33512"},"slug":"technology","categoryId":33512},{"name":"Programming & Web Design","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33592"},"slug":"programming-web-design","categoryId":33592},{"name":"MATLAB","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33604"},"slug":"matlab","categoryId":33604}],"parentCategory":{"categoryId":33592,"title":"Programming & Web Design","slug":"programming-web-design","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33592"}},"childCategories":[],"description":"MATLAB is a favorite of quantitative scientists everywhere, and it's insanely useful for people working with scientific research. We explain what it's for and how you can do it.","relatedArticles":{"self":"https://dummies-api.dummies.com/v2/articles?category=33604&offset=0&size=5"},"hasArticle":true,"hasBook":true,"articleCount":83,"bookCount":1},"_links":{"self":"https://dummies-api.dummies.com/v2/categories/33604"}},"relatedCategoriesLoadedStatus":"success"},"listState":{"list":{"count":10,"total":83,"items":[{"headers":{"creationTime":"2016-03-27T16:47:46+00:00","modifiedTime":"2021-07-12T13:13:56+00:00","timestamp":"2022-09-14T18:18:24+00:00"},"data":{"breadcrumbs":[{"name":"Technology","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33512"},"slug":"technology","categoryId":33512},{"name":"Programming & Web Design","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33592"},"slug":"programming-web-design","categoryId":33592},{"name":"MATLAB","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33604"},"slug":"matlab","categoryId":33604}],"title":"MATLAB For Dummies Cheat Sheet","strippedTitle":"matlab for dummies cheat sheet","slug":"matlab-for-dummies-cheat-sheet","canonicalUrl":"","seo":{"metaDescription":"Discover common MATLAB commands, operators, Live Script controls, Live Editor coding buttons, and line plot styles.","noIndex":0,"noFollow":0},"content":"MATLAB is an incredibly flexible environment that you can use to perform all sorts of math tasks. A large array of engineering and science disciplines can use MATLAB to meet specific needs in their environment. Using such a complex environment can prove daunting at first, but this Cheat Sheet can help: Get to know common MATLAB commands; become familiar with common operators and precedence; and learn to recognize line plot styles.","description":"MATLAB is an incredibly flexible environment that you can use to perform all sorts of math tasks. A large array of engineering and science disciplines can use MATLAB to meet specific needs in their environment. Using such a complex environment can prove daunting at first, but this Cheat Sheet can help: Get to know common MATLAB commands; become familiar with common operators and precedence; and learn to recognize line plot styles.","blurb":"","authors":[{"authorId":9109,"name":"John Paul Mueller","slug":"john-paul-mueller","description":" <p><b>John Mueller</b> has produced 114 books and more than 600 articles on topics ranging from functional programming techniques to working with Amazon Web Services &#40;AWS&#41;. <b>Luca Massaron,</b> a Google Developer Expert &#40;GDE&#41;,??interprets big data and transforms it into smart data through simple and effective data mining and machine learning techniques. ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9109"}}],"primaryCategoryTaxonomy":{"categoryId":33604,"title":"MATLAB","slug":"matlab","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33604"}},"secondaryCategoryTaxonomy":{"categoryId":0,"title":null,"slug":null,"_links":null},"tertiaryCategoryTaxonomy":{"categoryId":0,"title":null,"slug":null,"_links":null},"trendingArticles":[{"articleId":192609,"title":"How to Pray the Rosary: A Comprehensive Guide","slug":"how-to-pray-the-rosary","categoryList":["body-mind-spirit","religion-spirituality","christianity","catholicism"],"_links":{"self":"/articles/192609"}},{"articleId":208741,"title":"Kabbalah For Dummies Cheat Sheet","slug":"kabbalah-for-dummies-cheat-sheet","categoryList":["body-mind-spirit","religion-spirituality","kabbalah"],"_links":{"self":"/articles/208741"}},{"articleId":230957,"title":"Nikon D3400 For Dummies Cheat Sheet","slug":"nikon-d3400-dummies-cheat-sheet","categoryList":["home-auto-hobbies","photography"],"_links":{"self":"/articles/230957"}},{"articleId":235851,"title":"Praying the Rosary and Meditating on the Mysteries","slug":"praying-rosary-meditating-mysteries","categoryList":["body-mind-spirit","religion-spirituality","christianity","catholicism"],"_links":{"self":"/articles/235851"}},{"articleId":284787,"title":"What Your Society Says About You","slug":"what-your-society-says-about-you","categoryList":["academics-the-arts","humanities"],"_links":{"self":"/articles/284787"}}],"inThisArticle":[],"relatedArticles":{"fromBook":[{"articleId":203430,"title":"How to Temporarily Change the Current Folder in MATLAB","slug":"how-to-temporarily-change-the-current-folder-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203430"}},{"articleId":203429,"title":"How to Save a Formula or Command as a Script in MATLAB","slug":"how-to-save-a-formula-or-command-as-a-script-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203429"}},{"articleId":203425,"title":"How to Write Your First MATLAB Script","slug":"how-to-write-your-first-matlab-script","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203425"}},{"articleId":203424,"title":"How to Make a Flat Bar Chart in MATLAB","slug":"how-to-make-a-flat-bar-chart-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203424"}},{"articleId":203423,"title":"How to Install the Symbolic Math Toolbox to Use with MATLAB","slug":"how-to-install-the-symbolic-math-toolbox-to-use-with-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203423"}}],"fromCategory":[{"articleId":203430,"title":"How to Temporarily Change the Current Folder in MATLAB","slug":"how-to-temporarily-change-the-current-folder-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203430"}},{"articleId":203429,"title":"How to Save a Formula or Command as a Script in MATLAB","slug":"how-to-save-a-formula-or-command-as-a-script-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203429"}},{"articleId":203425,"title":"How to Write Your First MATLAB Script","slug":"how-to-write-your-first-matlab-script","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203425"}},{"articleId":203424,"title":"How to Make a Flat Bar Chart in MATLAB","slug":"how-to-make-a-flat-bar-chart-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203424"}},{"articleId":203423,"title":"How to Install the Symbolic Math Toolbox to Use with MATLAB","slug":"how-to-install-the-symbolic-math-toolbox-to-use-with-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203423"}}]},"hasRelatedBookFromSearch":false,"relatedBook":{"bookId":281772,"slug":"matlab-for-dummies","isbn":"9781119796886","categoryList":["technology","programming-web-design","matlab"],"amazon":{"default":"https://www.amazon.com/gp/product/1119796881/ref=as_li_tl?ie=UTF8&tag=wiley01-20","ca":"https://www.amazon.ca/gp/product/1119796881/ref=as_li_tl?ie=UTF8&tag=wiley01-20","indigo_ca":"http://www.tkqlhce.com/click-9208661-13710633?url=https://www.chapters.indigo.ca/en-ca/books/product/1119796881-item.html&cjsku=978111945484","gb":"https://www.amazon.co.uk/gp/product/1119796881/ref=as_li_tl?ie=UTF8&tag=wiley01-20","de":"https://www.amazon.de/gp/product/1119796881/ref=as_li_tl?ie=UTF8&tag=wiley01-20"},"image":{"src":"https://www.dummies.com/wp-content/uploads/matlab-for-dummies-2e-cover-9781119796886-203x255.jpg","width":203,"height":255},"title":"MATLAB For Dummies","testBankPinActivationLink":"","bookOutOfPrint":true,"authorsInfo":"<p><p><b>John Paul Mueller</b> is an author and technical editor with experience in application development, database management, machine learning, and deep learning. He has written hundreds of books and articles helping everyday people learn everything from networking to database management.</b> <p><b>John Mueller</b> has produced 114 books and more than 600 articles on topics ranging from functional programming techniques to working with Amazon Web Services &#40;AWS&#41;. <b>Luca Massaron,</b> a Google Developer Expert &#40;GDE&#41;,??interprets big data and transforms it into smart data through simple and effective data mining and machine learning techniques.</p>","authors":[{"authorId":9333,"name":"Jim Sizemore","slug":"jim-sizemore","description":" <p><b>John Paul Mueller</b> is an author and technical editor with experience in application development, database management, machine learning, and deep learning. He has written hundreds of books and articles helping everyday people learn everything from networking to database management.</b> ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9333"}},{"authorId":9109,"name":"John Paul Mueller","slug":"john-paul-mueller","description":" <p><b>John Mueller</b> has produced 114 books and more than 600 articles on topics ranging from functional programming techniques to working with Amazon Web Services &#40;AWS&#41;. <b>Luca Massaron,</b> a Google Developer Expert &#40;GDE&#41;,??interprets big data and transforms it into smart data through simple and effective data mining and machine learning techniques. ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9109"}}],"_links":{"self":"https://dummies-api.dummies.com/v2/books/"}},"collections":[],"articleAds":{"footerAd":"<div class=\"du-ad-region row\" id=\"article_page_adhesion_ad\"><div class=\"du-ad-unit col-md-12\" data-slot-id=\"article_page_adhesion_ad\" data-refreshed=\"false\" \r\n data-target = \"[{&quot;key&quot;:&quot;cat&quot;,&quot;values&quot;:[&quot;technology&quot;,&quot;programming-web-design&quot;,&quot;matlab&quot;]},{&quot;key&quot;:&quot;isbn&quot;,&quot;values&quot;:[&quot;9781119796886&quot;]}]\" id=\"du-slot-63221af0c0f19\"></div></div>","rightAd":"<div class=\"du-ad-region row\" id=\"article_page_right_ad\"><div class=\"du-ad-unit col-md-12\" data-slot-id=\"article_page_right_ad\" data-refreshed=\"false\" \r\n data-target = \"[{&quot;key&quot;:&quot;cat&quot;,&quot;values&quot;:[&quot;technology&quot;,&quot;programming-web-design&quot;,&quot;matlab&quot;]},{&quot;key&quot;:&quot;isbn&quot;,&quot;values&quot;:[&quot;9781119796886&quot;]}]\" id=\"du-slot-63221af0c1772\"></div></div>"},"articleType":{"articleType":"Cheat Sheet","articleList":[{"articleId":147998,"title":"Common MATLAB Commands","slug":"common-matlab-commands","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/147998"}},{"articleId":147997,"title":"MATLAB Common Operator Summary","slug":"matlab-common-operator-summary","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/147997"}},{"articleId":147992,"title":"MATLAB Operator Precedence","slug":"matlab-operator-precedence","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/147992"}},{"articleId":147979,"title":"Line Plot Styles in MATLAB","slug":"line-plot-styles-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/147979"}}],"content":[{"title":"Common MATLAB Commands","thumb":null,"image":null,"content":"<p>The following table contains a listing of commands that you use relatively often in MATLAB. You won’t find every command listed — that would require a book in itself. However, these commands are usually used several times each session.</p>\n<table>\n<tbody>\n<tr>\n<td width=\"109\"><strong>Command</strong></td>\n<td width=\"423\"><strong>Purpose</strong></td>\n</tr>\n<tr>\n<td width=\"109\"><code>cla</code></td>\n<td width=\"423\">Clears the current plot.</td>\n</tr>\n<tr>\n<td width=\"109\"><code>Clc</code></td>\n<td width=\"423\">Clears the Command window</td>\n</tr>\n<tr>\n<td width=\"109\"><code>clear <em>&lt;variable name&gt;</em></code></td>\n<td width=\"423\">Removes a specific variable from the Workspace window (as specified by <code><em>&lt;variable name&gt;</em></code>).</td>\n</tr>\n<tr>\n<td width=\"109\"><code>clear all</code></td>\n<td width=\"423\">Removes all of the variables from the Workspace window.</td>\n</tr>\n<tr>\n<td width=\"109\"><code>close <em>&lt;figure name&gt;</em></code></td>\n<td width=\"423\">Closes a specific figure (as specified by <code><em>&lt;figure name&gt;</em></code>).</td>\n</tr>\n<tr>\n<td width=\"109\"><code>close all</code></td>\n<td width=\"423\">Closes all the current figures.</td>\n</tr>\n<tr>\n<td width=\"109\"><code>diary <em>&lt;filename&gt;</em></code></td>\n<td width=\"423\">Specifies the name of the file to use for the Diary feature.</td>\n</tr>\n<tr>\n<td width=\"109\"><code>diary off</code></td>\n<td width=\"423\">Stops saving the Command window text to a file.</td>\n</tr>\n<tr>\n<td width=\"109\"><code>diary on</code></td>\n<td width=\"423\">Starts saving the Command window text to a file.</td>\n</tr>\n<tr>\n<td width=\"109\"><code>exist <em>&lt;keyword&gt;</em></code></td>\n<td width=\"423\">Checks whether a keyword or file is in use.</td>\n</tr>\n<tr>\n<td width=\"109\"><code>figure(<em>&lt;number&gt;</em>)</code></td>\n<td width=\"423\">Obtains the handle for the specified figure.</td>\n</tr>\n<tr>\n<td width=\"109\"><code>findobj('Type', 'figure')</code></td>\n<td width=\"423\">Obtains the handles for all existing figures.</td>\n</tr>\n<tr>\n<td width=\"109\"><code>format compact</code></td>\n<td width=\"423\">Removes extraneous spaces from the Command Window. Use the loose option to restore the default display. Other options include: <code>short </code>(default), <code>long</code>, <code>short e</code>, <code>long e</code>, <code>short g</code>, <code>long g</code>, <code>short eng</code>, and <code>long eng</code>.</td>\n</tr>\n<tr>\n<td width=\"109\"><code>gca</code></td>\n<td width=\"423\">Obtains a handle to the current axes.</td>\n</tr>\n<tr>\n<td width=\"109\"><code>gcf</code></td>\n<td width=\"423\">Obtains a handle to the current figure.</td>\n</tr>\n<tr>\n<td width=\"109\"><code>gco</code></td>\n<td width=\"423\">Obtains a handle to the current object.</td>\n</tr>\n<tr>\n<td width=\"109\"><code>get(<em>&lt;handle&gt;</em>, <em>&lt;property&gt;</em>)</code></td>\n<td width=\"423\">Obtains the <code><em>&lt;property&gt;</em></code> found in the object pointed at by <code><em>&lt;handle&gt;</em></code>.</td>\n</tr>\n<tr>\n<td width=\"109\"><code>help <em>&lt;command or file&gt;</em></code></td>\n<td width=\"423\">Displays help documentation for the <code><em>&lt;command&gt;</em></code> or comments in files you’ve created.</td>\n</tr>\n<tr>\n<td width=\"109\"><code>iskeyword</code></td>\n<td width=\"423\">Displays a list of all the MATLAB keywords.</td>\n</tr>\n<tr>\n<td width=\"109\"><code>iskeyword <em>&lt;name&gt;</em></code></td>\n<td width=\"423\">Determines whether <code><em>&lt;name&gt;</em></code> is a keyword.</td>\n</tr>\n<tr>\n<td width=\"109\"><code>load <em>&lt;filename&gt;</em></code></td>\n<td width=\"423\">Loads the file containing variables to the Workspace window.</td>\n</tr>\n<tr>\n<td width=\"109\"><code>more off</code></td>\n<td width=\"423\">Displays output using standard scrolling so that all the output appears simultaneously.</td>\n</tr>\n<tr>\n<td width=\"109\"><code>more on</code></td>\n<td width=\"423\">Tells MATLAB to display output one screen at a time.</td>\n</tr>\n<tr>\n<td width=\"109\"><code>save <em>&lt;filename&gt;</em></code></td>\n<td width=\"423\">Saves the variables shown in the Workspace window to the specified file.</td>\n</tr>\n<tr>\n<td width=\"109\"><code>set(<em>&lt;handle&gt;</em>, <em>&lt;property&gt;</em>, <em>&lt;value&gt;</em>)</code></td>\n<td width=\"423\">Sets the <code><em>&lt;property&gt;</em> </code>found in the object pointed at by <code><em>&lt;handle&gt;</em></code> to the specified <code><em>&lt;value&gt;</em></code>.</td>\n</tr>\n</tbody>\n</table>\n<p>&nbsp;</p>\n"},{"title":"MATLAB Common Operator Summary","thumb":null,"image":null,"content":"<p>It’s important to know which operators MATLAB supports, and remembering them all isn’t always easy. The following table provides a quick summary of the operators that MATLAB supports.</p>\n<table>\n<tbody>\n<tr>\n<td width=\"109\"><strong>Operator</strong></td>\n<td width=\"102\"><strong>Type</strong></td>\n<td width=\"126\"><strong>Description</strong></td>\n<td width=\"195\"><strong>Example</strong></td>\n</tr>\n<tr>\n<td width=\"109\"><code>–</code></td>\n<td width=\"102\">Arithmetic</td>\n<td width=\"126\">Subtracts the right operand from left operand</td>\n<td width=\"195\"><code>5 — 2 = 3</code></td>\n</tr>\n<tr>\n<td width=\"109\"><code>*</code></td>\n<td width=\"102\">Arithmetic</td>\n<td width=\"126\">Multiplies the right operand by the left operand</td>\n<td width=\"195\"><code>5 * 2 = 10</code></td>\n</tr>\n<tr>\n<td width=\"109\"><code>^</code></td>\n<td width=\"102\">Arithmetic</td>\n<td width=\"126\">Calculates the exponential value of the right operand raised to the power of the left operand</td>\n<td width=\"195\"><code>5^2 = 25</code></td>\n</tr>\n<tr>\n<td width=\"109\"><code>/</code></td>\n<td width=\"102\">Arithmetic</td>\n<td width=\"126\">Divides the left operand by the right operand</td>\n<td width=\"195\"><code>5 / 2 = 2.5000</code></td>\n</tr>\n<tr>\n<td width=\"109\"><code>\\</code></td>\n<td width=\"102\">Arithmetic</td>\n<td width=\"126\">Divides the right operand by the left operand</td>\n<td width=\"195\"><code>5 \\ 2 = 0.4000</code></td>\n</tr>\n<tr>\n<td width=\"109\"><code>+</code></td>\n<td width=\"102\">Arithmetic</td>\n<td width=\"126\">Adds two values together</td>\n<td width=\"195\"><code>5 + 2 = 7</code></td>\n</tr>\n<tr>\n<td width=\"109\"><code>.</code></td>\n<td width=\"102\">Arithmetic</td>\n<td width=\"126\">Modifies operators to perform element-by-element arithmetic versus matrix arithmetic.  There is no modification if you’re operating on scalars (ordinary numbers).</td>\n<td width=\"195\"><code>[1,2]*[3;4] = 11</code></p>\n<p><code>[1,2].*[3,4] = [3,8]</code></td>\n</tr>\n<tr>\n<td width=\"109\"><code>=</code></td>\n<td width=\"102\">Assignment</td>\n<td width=\"126\">Assigns the value found in the right operand to the left operand.</td>\n<td width=\"195\"><code>MyVar = 2 results in MyVar containing 2</code></td>\n</tr>\n<tr>\n<td width=\"109\"><code>bitand</code></td>\n<td width=\"102\">Bitwise</td>\n<td width=\"126\">Performs a logical and of the bits in two numbers.</td>\n<td width=\"195\"><code>bitand(4, 5) = 4</code></td>\n</tr>\n<tr>\n<td width=\"109\"><code>bitor</code></td>\n<td width=\"102\">Bitwise</td>\n<td width=\"126\">Performs a logical or of the bits in two numbers.</td>\n<td width=\"195\"><code>bitor(4, 5) = 5</code></td>\n</tr>\n<tr>\n<td width=\"109\"><code>bitget</code></td>\n<td width=\"102\">Bitwise</td>\n<td width=\"126\">Obtains the value of the bit at a specific location.</td>\n<td width=\"195\"><code>bitget(4, 3) = 1</code></td>\n</tr>\n<tr>\n<td width=\"109\"><code>bitset</code></td>\n<td width=\"102\">Bitwise</td>\n<td width=\"126\">Changes the bit at the specified location.</td>\n<td width=\"195\"><code>bitset(4, 1, 1) = 5</code></td>\n</tr>\n<tr>\n<td width=\"109\"><code>bitshift</code></td>\n<td width=\"102\">Bitwise</td>\n<td width=\"126\">Shifts the bits the specified number of positions.</td>\n<td width=\"195\"><code>bitshift(2, 1) = 4</code></td>\n</tr>\n<tr>\n<td width=\"109\"><code>bitxor</code></td>\n<td width=\"102\">Bitwise</td>\n<td width=\"126\">Performs a logical exclusive or on the bits in two numbers.</td>\n<td width=\"195\"><code>bitxor(4, 5) = 1</code></td>\n</tr>\n<tr>\n<td width=\"109\"><code>and</code></td>\n<td width=\"102\">Logical</td>\n<td width=\"126\">Determines whether both operands are true.</td>\n<td width=\"195\"><code>and(true, true) = 1 (or true)</code></p>\n<p><code>and(true, false) = 0 (or false)</code></p>\n<p><code>and(false, false) = 0</code></p>\n<p><code>and(false, true) = 0</code></td>\n</tr>\n<tr>\n<td width=\"109\"><code>not</code></td>\n<td width=\"102\">Logical</td>\n<td width=\"126\">Negates the truth value of a single operand. A true value becomes false and a false value becomes true.</td>\n<td width=\"195\"><code>not(true) = 0</code></p>\n<p><code>not(false)=1</code></td>\n</tr>\n<tr>\n<td width=\"109\"><code>or</code></td>\n<td width=\"102\">Logical</td>\n<td width=\"126\">Determines when one of two operands is true.</td>\n<td width=\"195\"><code>or(true, true) = 1</code></p>\n<p><code>or(true, false) = 1</code></p>\n<p><code>or(false, false) = 0</code></p>\n<p><code>or(false, true) = 1</code></td>\n</tr>\n<tr>\n<td width=\"109\"><code>xor</code></td>\n<td width=\"102\">Logical</td>\n<td width=\"126\">Determines when one and only one of the operands is true.</td>\n<td width=\"195\"><code>xor(true, true) = 0</code></p>\n<p><code>xor(true, false) = 1</code></p>\n<p><code>xor(false, false) = 0</code></p>\n<p><code>xor(false, true) = 1</code></td>\n</tr>\n<tr>\n<td width=\"109\"><code>all</code></td>\n<td width=\"102\">Logical</td>\n<td width=\"126\">Determines if all of the array elements are non-zero or true.</td>\n<td width=\"195\"><code>all([1, 2, 3, 4]) = 1</code></p>\n<p><code>all([0, 1, 2, 3]) = 0</code></td>\n</tr>\n<tr>\n<td width=\"109\"><code>any</code></td>\n<td width=\"102\">Logical</td>\n<td width=\"126\">Determines if any of the array elements are non-zero or true.</td>\n<td width=\"195\"><code>any([0, 1, 0, 0]) = 1</code></p>\n<p><code>any([0, 0, 0, 0]) = 0</code></td>\n</tr>\n<tr>\n<td width=\"109\"><code>~=</code></td>\n<td width=\"102\">Relational</td>\n<td width=\"126\">Determines whether two values are not equal.</td>\n<td width=\"195\"><code>1 ~= 2 is 1 (or true)</code></td>\n</tr>\n<tr>\n<td width=\"109\"><code>&lt;</code></td>\n<td width=\"102\">Relational</td>\n<td width=\"126\">Verifies that the left operand value is less than the right operand value.</td>\n<td width=\"195\"><code>1 &lt; 2 is 1</code></td>\n</tr>\n<tr>\n<td width=\"109\"><code>&lt;=</code></td>\n<td width=\"102\">Relational</td>\n<td width=\"126\">Verifies that the left operand value is less than or equal to the right operand value.</td>\n<td width=\"195\"><code>1 &lt;= 2 is 1</code></td>\n</tr>\n<tr>\n<td width=\"109\"><code>==</code></td>\n<td width=\"102\">Relational</td>\n<td width=\"126\">Determines whether two values are equal. Notice that the relational operator uses two equals signs. A mistake many developers make is using just one equals sign, which results in one value being assigned to another.</td>\n<td width=\"195\"><code>1 == 2 is 0</code></td>\n</tr>\n<tr>\n<td width=\"109\"><code>&gt;</code></td>\n<td width=\"102\">Relational</td>\n<td width=\"126\">Verifies that the left operand value is greater than the right operand value.</td>\n<td width=\"195\"><code>1 &gt; 2 is 0</code></td>\n</tr>\n<tr>\n<td width=\"109\"><code>&gt;=</code></td>\n<td width=\"102\">Relational</td>\n<td width=\"126\">Verifies that the left operand value is greater than or equal to the right operand value.</td>\n<td width=\"195\"><code>1 &gt;= 2 is 0</code></td>\n</tr>\n<tr>\n<td width=\"109\"><code>-</code></td>\n<td width=\"102\">Unary</td>\n<td width=\"126\">Negates the original value, so that positive becomes negative and vice versa.</td>\n<td width=\"195\"><code>—(@@nd4) results in 4 while —4 results in —4</code></td>\n</tr>\n<tr>\n<td width=\"109\"><code>+</code></td>\n<td width=\"102\">Unary</td>\n<td width=\"126\">Provided purely for the sake of completeness. This operator returns the same value you provide as input.</td>\n<td width=\"195\"><code>+4 results in a value of 4</code></td>\n</tr>\n</tbody>\n</table>\n<p>&nbsp;</p>\n"},{"title":"Live Script Control Summary","thumb":null,"image":null,"content":"<p>Using Live Script controls can make your documents interactive. You can do everything from very simple things, like displaying a Help button, to providing controlled inputs for your algorithm. You can create input form documents or design a test. Using controls gives your application more of a full-fledged application feel without requiring you to get a computer science degree. Not that the experience of using controls is free of some development tricks, but using the MATLAB controls is easier than working with controls in a full-fledged development environment. MATLAB supports these controls:</p>\n<table>\n<tbody>\n<tr>\n<td width=\"97\"><strong>Control</strong></td>\n<td width=\"120\"><strong>Purpose</strong></td>\n<td width=\"315\"><strong>Description</strong></td>\n</tr>\n<tr>\n<td width=\"97\">Button</td>\n<td width=\"120\">Lets you define the precise moment when an action should occur</td>\n<td width=\"315\">After providing all the input required to create a plot, the user clicks the Plot button in your application and sees the resulting plot onscreen. To use the Button control effectively, you must set the <code>Run </code>field for any controls in the document to <code>Nothing</code>.</td>\n</tr>\n<tr>\n<td width=\"97\">Check Box</td>\n<td width=\"120\">Provides logical input with an output of one of two values</td>\n<td width=\"315\">The feature is either on or off, the answer is either yes or no, the user either wants to opt in or opt out.</td>\n</tr>\n<tr>\n<td width=\"97\">Drop-Down List</td>\n<td width=\"120\">Contains a set number of input values</td>\n<td width=\"315\">The user selects the desired input value from the list, meaning that incorrect input values due to typos and other forms of user error are a thing of the past. Relying on drop-down list boxes instead of requiring the user to type values also makes data entry significantly faster.</td>\n</tr>\n<tr>\n<td width=\"97\">Edit Field</td>\n<td width=\"120\">Provides a convenient means of allowing free-form input from the user</td>\n<td width=\"315\">Avoid using the Edit Field control when you can; it creates the potential for a security breach unless you perform a lot of background checks. The Edit Field control is the most flexible of all the controls because you really can perform free-form input.</td>\n</tr>\n<tr>\n<td width=\"97\">Numeric Slider</td>\n<td width=\"120\">Allows control over a value within a specific range</td>\n<td width=\"315\">You might want to allow the viewer to choose the number of graphs displayed at any time as part of the plot. Moving the Numeric Slider control&#8217;s thumb (the square box that controls its value) to the desired number of graphs will change the appearance of the plot. The advantage of using a numeric slider is that you control the correct input values and don&#8217;t need to consider values outside the desired range, thereby reducing application errors.</td>\n</tr>\n</tbody>\n</table>\n<p>&nbsp;</p>\n"},{"title":"Live Editor Coding Buttons","thumb":null,"image":null,"content":"<p>Specialized features can make your coding experience easier and possibly save time as well. MATLAB provides a set of six specialized coding buttons in the Code section of the Live Editor tab. The following table offers a quick summary of how you use each button (or associated speed key) to perform tasks in Live Editor.</p>\n<table>\n<tbody>\n<tr>\n<td width=\"91\"><strong>Button Name</strong></td>\n<td width=\"78\"><strong>Speed Key</strong></td>\n<td width=\"363\"><strong>Purpose</strong></td>\n</tr>\n<tr>\n<td width=\"91\">Comment</td>\n<td width=\"78\">Ctrl+R</td>\n<td width=\"363\">Adds a <code>% </code>in front of each selected line in a group, commenting the code out for testing or debugging.</td>\n</tr>\n<tr>\n<td width=\"91\">Uncomment</td>\n<td width=\"78\">Ctrl+T</td>\n<td width=\"363\">Removes the first <code>%</code> in front of each selected line in a group, making the code active again. If the group contains a comment line, only the first <code>%</code> is removed, which means that the comment stays a comment.</td>\n</tr>\n<tr>\n<td width=\"91\">Wrap Comments</td>\n<td width=\"78\">Ctrl+J</td>\n<td width=\"363\">Combines lines with a similar indent to make a comment block smaller. Works only with lines that are already commented out.</td>\n</tr>\n<tr>\n<td width=\"91\">Smart Indent</td>\n<td width=\"78\">Ctrl+I</td>\n<td width=\"363\">Adds indentation as needed to make the code more readable. MATLAB uses natural code boundaries, such as <code>if…else</code> statements, to make the indentation.</td>\n</tr>\n<tr>\n<td width=\"91\">Increase Indent</td>\n<td width=\"78\">Ctrl+]</td>\n<td width=\"363\">Adds a single level of indentation to the selected lines of code.</td>\n</tr>\n<tr>\n<td width=\"91\">Decrease Indent</td>\n<td width=\"78\">Ctrl+[</td>\n<td width=\"363\">Removes a single level of indentation from the selected lines of code. If the selected code is already at the left margin, the button has no effect on that line.</td>\n</tr>\n</tbody>\n</table>\n<p>&nbsp;</p>\n"},{"title":"Line Plot Styles","thumb":null,"image":null,"content":"<p>Whenever you create a plot, you need to identify the sources of information using more than just the lines. Creating a plot that uses differing line types and data point symbols makes the plot much easier for other people to use. The following table contains a listing of the line plot styles.</p>\n<table>\n<tbody>\n<tr>\n<td colspan=\"2\"><strong>Color</strong></td>\n<td colspan=\"2\"><strong>Marker</strong></td>\n<td colspan=\"2\"><strong>Style</strong></td>\n</tr>\n<tr>\n<td><strong>Code</strong></td>\n<td><strong>Line Color</strong></td>\n<td><strong>Code</strong></td>\n<td><strong>Marker Style</strong></td>\n<td><strong>Code</strong></td>\n<td><strong>Line Style</strong></td>\n</tr>\n<tr>\n<td>b</td>\n<td>Blue</td>\n<td>.</td>\n<td>Point</td>\n<td>&#8211;</td>\n<td>Solid</td>\n</tr>\n<tr>\n<td>g</td>\n<td>Green</td>\n<td>o</td>\n<td>Circle</td>\n<td>:</td>\n<td>Dotted</td>\n</tr>\n<tr>\n<td>r</td>\n<td>Red</td>\n<td>x</td>\n<td>X-mark</td>\n<td>-.</td>\n<td>dash dot</td>\n</tr>\n<tr>\n<td>c</td>\n<td>Cyan</td>\n<td>+</td>\n<td>Plus</td>\n<td>&#8212;</td>\n<td>Dashed</td>\n</tr>\n<tr>\n<td>m</td>\n<td>Magenta</td>\n<td>*</td>\n<td>Star</td>\n<td>(none)</td>\n<td>no line</td>\n</tr>\n<tr>\n<td>y</td>\n<td>Yellow</td>\n<td>s</td>\n<td>Square</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>k</td>\n<td>Black</td>\n<td>d</td>\n<td>Diamond</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>w</td>\n<td>White</td>\n<td>v</td>\n<td>Down triangle</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td></td>\n<td>^</td>\n<td>Up triangle</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td></td>\n<td>&lt;</td>\n<td>Left triangle</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td></td>\n<td>&gt;</td>\n<td>Right triangle</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td></td>\n<td>p</td>\n<td>Five-point star</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td></td>\n<td>h</td>\n<td>Six-point star</td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n<p>Remember that you can also use these styles with other kinds of plots. For example, a scatterplot can use these styles to define each of the data points. When in doubt, try the styles to see whether they’ll work with your particular plot.</p>\n"}],"videoInfo":{"videoId":null,"name":null,"accountId":null,"playerId":null,"thumbnailUrl":null,"description":null,"uploadDate":null}},"sponsorship":{"sponsorshipPage":false,"backgroundImage":{"src":null,"width":0,"height":0},"brandingLine":"","brandingLink":"","brandingLogo":{"src":null,"width":0,"height":0},"sponsorAd":"","sponsorEbookTitle":"","sponsorEbookLink":"","sponsorEbookImage":{"src":null,"width":0,"height":0}},"primaryLearningPath":"Advance","lifeExpectancy":"One year","lifeExpectancySetFrom":"2021-06-20T00:00:00+00:00","dummiesForKids":"no","sponsoredContent":"no","adInfo":"","adPairKey":[]},"status":"publish","visibility":"public","articleId":207617},{"headers":{"creationTime":"2016-03-27T09:30:43+00:00","modifiedTime":"2017-03-27T13:08:25+00:00","timestamp":"2022-09-14T18:17:57+00:00"},"data":{"breadcrumbs":[{"name":"Technology","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33512"},"slug":"technology","categoryId":33512},{"name":"Programming & Web Design","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33592"},"slug":"programming-web-design","categoryId":33592},{"name":"MATLAB","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33604"},"slug":"matlab","categoryId":33604}],"title":"How to Add Math Symbols in MATLAB","strippedTitle":"how to add math symbols in matlab","slug":"how-to-add-math-symbols-in-matlab","canonicalUrl":"","seo":{"metaDescription":"You would have a tough time presenting formulas to others without being able to use math symbols. MATLAB provides you with a wealth of symbols that you can use ","noIndex":0,"noFollow":0},"content":"<p>You would have a tough time presenting formulas to others without being able to use math symbols. MATLAB provides you with a wealth of symbols that you can use for output purposes. Here are the most commonly used symbols and how you access them.</p>","description":"<p>You would have a tough time presenting formulas to others without being able to use math symbols. MATLAB provides you with a wealth of symbols that you can use for output purposes. Here are the most commonly used symbols and how you access them.</p>","blurb":"","authors":[{"authorId":9333,"name":"Jim Sizemore","slug":"jim-sizemore","description":" <p><b>John Paul Mueller</b> is an author and technical editor with experience in application development, database management, machine learning, and deep learning. He has written hundreds of books and articles helping everyday people learn everything from networking to database management.</b> ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9333"}},{"authorId":9109,"name":"John Paul Mueller","slug":"john-paul-mueller","description":" <p><b>John Mueller</b> has produced 114 books and more than 600 articles on topics ranging from functional programming techniques to working with Amazon Web Services &#40;AWS&#41;. <b>Luca Massaron,</b> a Google Developer Expert &#40;GDE&#41;,??interprets big data and transforms it into smart data through simple and effective data mining and machine learning techniques. ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9109"}}],"primaryCategoryTaxonomy":{"categoryId":33604,"title":"MATLAB","slug":"matlab","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33604"}},"secondaryCategoryTaxonomy":{"categoryId":0,"title":null,"slug":null,"_links":null},"tertiaryCategoryTaxonomy":{"categoryId":0,"title":null,"slug":null,"_links":null},"trendingArticles":[{"articleId":192609,"title":"How to Pray the Rosary: A Comprehensive Guide","slug":"how-to-pray-the-rosary","categoryList":["body-mind-spirit","religion-spirituality","christianity","catholicism"],"_links":{"self":"/articles/192609"}},{"articleId":208741,"title":"Kabbalah For Dummies Cheat Sheet","slug":"kabbalah-for-dummies-cheat-sheet","categoryList":["body-mind-spirit","religion-spirituality","kabbalah"],"_links":{"self":"/articles/208741"}},{"articleId":230957,"title":"Nikon D3400 For Dummies Cheat Sheet","slug":"nikon-d3400-dummies-cheat-sheet","categoryList":["home-auto-hobbies","photography"],"_links":{"self":"/articles/230957"}},{"articleId":235851,"title":"Praying the Rosary and Meditating on the Mysteries","slug":"praying-rosary-meditating-mysteries","categoryList":["body-mind-spirit","religion-spirituality","christianity","catholicism"],"_links":{"self":"/articles/235851"}},{"articleId":284787,"title":"What Your Society Says About You","slug":"what-your-society-says-about-you","categoryList":["academics-the-arts","humanities"],"_links":{"self":"/articles/284787"}}],"inThisArticle":[],"relatedArticles":{"fromBook":[{"articleId":207617,"title":"MATLAB For Dummies Cheat Sheet","slug":"matlab-for-dummies-cheat-sheet","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/207617"}},{"articleId":203430,"title":"How to Temporarily Change the Current Folder in MATLAB","slug":"how-to-temporarily-change-the-current-folder-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203430"}},{"articleId":203429,"title":"How to Save a Formula or Command as a Script in MATLAB","slug":"how-to-save-a-formula-or-command-as-a-script-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203429"}},{"articleId":203425,"title":"How to Write Your First MATLAB Script","slug":"how-to-write-your-first-matlab-script","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203425"}},{"articleId":203424,"title":"How to Make a Flat Bar Chart in MATLAB","slug":"how-to-make-a-flat-bar-chart-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203424"}}],"fromCategory":[{"articleId":207617,"title":"MATLAB For Dummies Cheat Sheet","slug":"matlab-for-dummies-cheat-sheet","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/207617"}},{"articleId":203430,"title":"How to Temporarily Change the Current Folder in MATLAB","slug":"how-to-temporarily-change-the-current-folder-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203430"}},{"articleId":203429,"title":"How to Save a Formula or Command as a Script in MATLAB","slug":"how-to-save-a-formula-or-command-as-a-script-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203429"}},{"articleId":203425,"title":"How to Write Your First MATLAB Script","slug":"how-to-write-your-first-matlab-script","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203425"}},{"articleId":203424,"title":"How to Make a Flat Bar Chart in MATLAB","slug":"how-to-make-a-flat-bar-chart-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203424"}}]},"hasRelatedBookFromSearch":false,"relatedBook":{"bookId":281772,"slug":"matlab-for-dummies","isbn":"9781119796886","categoryList":["technology","programming-web-design","matlab"],"amazon":{"default":"https://www.amazon.com/gp/product/1119796881/ref=as_li_tl?ie=UTF8&tag=wiley01-20","ca":"https://www.amazon.ca/gp/product/1119796881/ref=as_li_tl?ie=UTF8&tag=wiley01-20","indigo_ca":"http://www.tkqlhce.com/click-9208661-13710633?url=https://www.chapters.indigo.ca/en-ca/books/product/1119796881-item.html&cjsku=978111945484","gb":"https://www.amazon.co.uk/gp/product/1119796881/ref=as_li_tl?ie=UTF8&tag=wiley01-20","de":"https://www.amazon.de/gp/product/1119796881/ref=as_li_tl?ie=UTF8&tag=wiley01-20"},"image":{"src":"https://www.dummies.com/wp-content/uploads/matlab-for-dummies-2e-cover-9781119796886-203x255.jpg","width":203,"height":255},"title":"MATLAB For Dummies","testBankPinActivationLink":"","bookOutOfPrint":true,"authorsInfo":"<p><p><b>John Paul Mueller</b> is an author and technical editor with experience in application development, database management, machine learning, and deep learning. He has written hundreds of books and articles helping everyday people learn everything from networking to database management.</b> <p><b>John Mueller</b> has produced 114 books and more than 600 articles on topics ranging from functional programming techniques to working with Amazon Web Services &#40;AWS&#41;. <b>Luca Massaron,</b> a Google Developer Expert &#40;GDE&#41;,??interprets big data and transforms it into smart data through simple and effective data mining and machine learning techniques.</p>","authors":[{"authorId":9333,"name":"Jim Sizemore","slug":"jim-sizemore","description":" <p><b>John Paul Mueller</b> is an author and technical editor with experience in application development, database management, machine learning, and deep learning. He has written hundreds of books and articles helping everyday people learn everything from networking to database management.</b> ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9333"}},{"authorId":9109,"name":"John Paul Mueller","slug":"john-paul-mueller","description":" <p><b>John Mueller</b> has produced 114 books and more than 600 articles on topics ranging from functional programming techniques to working with Amazon Web Services &#40;AWS&#41;. <b>Luca Massaron,</b> a Google Developer Expert &#40;GDE&#41;,??interprets big data and transforms it into smart data through simple and effective data mining and machine learning techniques. ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9109"}}],"_links":{"self":"https://dummies-api.dummies.com/v2/books/"}},"collections":[],"articleAds":{"footerAd":"<div class=\"du-ad-region row\" id=\"article_page_adhesion_ad\"><div class=\"du-ad-unit col-md-12\" data-slot-id=\"article_page_adhesion_ad\" data-refreshed=\"false\" \r\n data-target = \"[{&quot;key&quot;:&quot;cat&quot;,&quot;values&quot;:[&quot;technology&quot;,&quot;programming-web-design&quot;,&quot;matlab&quot;]},{&quot;key&quot;:&quot;isbn&quot;,&quot;values&quot;:[&quot;9781119796886&quot;]}]\" id=\"du-slot-63221ad5d9b80\"></div></div>","rightAd":"<div class=\"du-ad-region row\" id=\"article_page_right_ad\"><div class=\"du-ad-unit col-md-12\" data-slot-id=\"article_page_right_ad\" data-refreshed=\"false\" \r\n data-target = \"[{&quot;key&quot;:&quot;cat&quot;,&quot;values&quot;:[&quot;technology&quot;,&quot;programming-web-design&quot;,&quot;matlab&quot;]},{&quot;key&quot;:&quot;isbn&quot;,&quot;values&quot;:[&quot;9781119796886&quot;]}]\" id=\"du-slot-63221ad5da15c\"></div></div>"},"articleType":{"articleType":"Step by Step","articleList":null,"content":[{"title":"Fraction","thumb":{"src":null,"width":0,"height":0},"image":{"src":"https://www.dummies.com/wp-content/uploads/454664.image0.jpg","width":452,"height":400},"content":"<p>Displaying a fraction onscreen doesn&#8217;t always include a numeric fraction; it could be a formula that requires that sort of presentation. Whatever your need, you can display fractions whenever needed. However, to do that, you must use the <a href=\"http://www.latex-project.org/\">LaTeX</a> interpreter. This means that your formatting options are limited and that the output won&#8217;t necessarily reflect the formatting choices you normally make when using MATLAB.</p>\n<p>The fraction requires use of a LaTeX display style that you access using <span class=\"code\">$displaystylefrac</span>. The fraction itself appears in two curly brackets, such as {1}{2} for the symbol 1/2. The entry ends with another dollar sign ($). To see how fractions work with something a little more complex, type <b>TBox12 = annotation(&#8216;textbox&#8217;, [.13, .3, .14, .075], &#8216;String&#8217;, &#8216;$displaystylefrac{x-2y}{x+y}$&#8217;, &#8216;BackgroundColor&#8217;, [1, .5, .5], &#8216;Interpreter&#8217;, &#8216;latex&#8217;);</b> and press Enter.</p>\n"},{"title":"Square root","thumb":{"src":null,"width":0,"height":0},"image":{"src":"https://www.dummies.com/wp-content/uploads/454665.image1.jpg","width":452,"height":400},"content":"<p>MATLAB makes displaying a square root symbol easy. However, getting the square root symbol the right size and with the bar extended over the expression whose root is being taken requires LaTeX.</p>\n<p>As with many LaTeX commands, you enclose the string that you want to format in a pair of dollar signs (<span class=\"code\">$</span>). The function used to perform the formatting is <span class=\"code\">sqrt{}</span>, and the value that you want to place within the square root symbol appears within the curly brackets.</p>\n<p>To see the square root symbol in action, type <b>TBox13 = annotation(&#8216;textbox&#8217;, [.29, .3, .14, .075], &#8216;String&#8217;, &#8216;$sqrt{f}$&#8217;, &#8216;BackgroundColor&#8217;, [1, .5, .5], &#8216;Interpreter&#8217;, &#8216;latex&#8217;);</b> and press Enter. The variable <span class=\"code\">f</span> will appear in the square root symbol.</p>\n"},{"title":"Sum","thumb":{"src":null,"width":0,"height":0},"image":{"src":"https://www.dummies.com/wp-content/uploads/454666.image2.jpg","width":452,"height":400},"content":"<p>Displaying a summation formula complete with sigma and the upper and lower limit involves using LaTeX with the <span class=\"code\">sum</span> function. You supply all three elements of the display in a single statement: the lower limit first, the upper limit second, and the expression third. Each element appears in separate curly brackets.</p>\n<p>The lower limit is preceded by the underscore used for subscripts and the upper limit is preceded by the caret used for superscripts. The entire statement appears within dollar signs ($), as is normal for LaTeX. However, in this particular case, you must include a second set of dollar signs or the expression doesn&#8217;t appear correctly onscreen. (The upper and lower limits don&#8217;t appear in the correct places.)</p>\n<p>To see how summation works, type <b>TBox14 = annotation(&#8216;textbox&#8217;, [.45, .285, .14, .1], &#8216;String&#8217;, &#8216;$$sum_{i=1}^{2n}{|k_i-k_j|}$$&#8217;, &#8216;BackgroundColor&#8217;, [1, .5, .5], &#8216;Interpreter&#8217;, &#8216;latex&#8217;);</b> and press Enter. Notice the use of the double dollar signs in this case. In addition, be sure to include both the underscore and caret, as shown.</p>\n"},{"title":"Integral","thumb":{"src":null,"width":0,"height":0},"image":{"src":"https://www.dummies.com/wp-content/uploads/454667.image3.jpg","width":452,"height":400},"content":"<p>To display a definite integral, you use the LaTeX <span class=\"code\">int</span> function, along with the <span class=\"code\">d</span> function for the slices. The <span class=\"code\">int</span> function accepts three inputs: two for the interval and the third for the function. In many respects, the format is the same as that used for summation.</p>\n<p>The beginning of the interval relies on the superscript caret character, while the ending of the interval relies on the subscript underscore character. You must enclose the entire command within double dollar signs (<span class=\"code\">$$</span>) or else the formatting of the superscript and subscript will fail.</p>\n<p>To see how to create an integral, type <b>TBox15 = annotation(&#8216;textbox&#8217;, [.61, .285, .22, .1], &#8216;String&#8217;, &#8216;$$int_{y1(x)}^{y2(x)}{f(x,y)}d{dx}d{dy}$$&#8217;, &#8216;BackgroundColor&#8217;, [1, .5, .5], &#8216;Interpreter&#8217;, &#8216;latex&#8217;);</b> and press Enter. Notice that the two slices come after the <span class=\"code\">int</span> function and that each slice appears in its own <span class=\"code\">d</span> function.</p>\n"},{"title":"Derivative","thumb":{"src":null,"width":0,"height":0},"image":{"src":"https://www.dummies.com/wp-content/uploads/454668.image4.jpg","width":452,"height":400},"content":"<p>When creating a derivative, you use LaTeX to define a combination of a fraction with superscripts. So, in reality, you&#8217;ve already created a derivative in the past &#8212; at least in parts. To see how a derivative works, type <b>TBox16 = annotation(&#8216;textbox&#8217;, [.13, .21, .14, .085], &#8216;String&#8217;, &#8216;$displaystylefrac{d^2u}{dx^2}$&#8217;, &#8216;BackgroundColor&#8217;, [1, .5, .5], &#8216;Interpreter&#8217;, &#8216;latex&#8217;);</b> and press Enter.</p>\n"}],"videoInfo":{"videoId":null,"name":null,"accountId":null,"playerId":null,"thumbnailUrl":null,"description":null,"uploadDate":null}},"sponsorship":{"sponsorshipPage":false,"backgroundImage":{"src":null,"width":0,"height":0},"brandingLine":"","brandingLink":"","brandingLogo":{"src":null,"width":0,"height":0},"sponsorAd":"","sponsorEbookTitle":"","sponsorEbookLink":"","sponsorEbookImage":{"src":null,"width":0,"height":0}},"primaryLearningPath":"Advance","lifeExpectancy":null,"lifeExpectancySetFrom":null,"dummiesForKids":"no","sponsoredContent":"no","adInfo":"","adPairKey":[]},"status":"publish","visibility":"public","articleId":203422},{"headers":{"creationTime":"2016-03-27T09:31:32+00:00","modifiedTime":"2016-03-27T09:31:32+00:00","timestamp":"2022-09-14T18:12:33+00:00"},"data":{"breadcrumbs":[{"name":"Technology","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33512"},"slug":"technology","categoryId":33512},{"name":"Programming & Web Design","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33592"},"slug":"programming-web-design","categoryId":33592},{"name":"MATLAB","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33604"},"slug":"matlab","categoryId":33604}],"title":"How to Temporarily Change the Current Folder in MATLAB","strippedTitle":"how to temporarily change the current folder in matlab","slug":"how-to-temporarily-change-the-current-folder-in-matlab","canonicalUrl":"","seo":{"metaDescription":"When you first start MATLAB, the current folder always defaults to the MATLAB folder found in your user folder for the platform of your choice. For Windows user","noIndex":0,"noFollow":0},"content":"<p>When you first start MATLAB, the current folder always defaults to the MATLAB folder found in your user folder for the platform of your choice. For Windows users, that means the <span class=\"code\">C:Users<</span><i>User Name</i>><span class=\"code\">DocumentsMATLAB</span> folder. Burying your data way down deep in the operating system may seem like a good idea to the operating system vendor, but you can change the current folder location to something more convenient when desired.</p>\n<p>Perhaps your data is actually stored on a network drive, you want to use a shared location so that others can see your data, or you simply want to use a more convenient location on your local drive. The following steps help you change the current folder:</p>","description":"<p>When you first start MATLAB, the current folder always defaults to the MATLAB folder found in your user folder for the platform of your choice. For Windows users, that means the <span class=\"code\">C:Users<</span><i>User Name</i>><span class=\"code\">DocumentsMATLAB</span> folder. Burying your data way down deep in the operating system may seem like a good idea to the operating system vendor, but you can change the current folder location to something more convenient when desired.</p>\n<p>Perhaps your data is actually stored on a network drive, you want to use a shared location so that others can see your data, or you simply want to use a more convenient location on your local drive. The following steps help you change the current folder:</p>","blurb":"","authors":[{"authorId":9333,"name":"Jim Sizemore","slug":"jim-sizemore","description":" <p><b>John Paul Mueller</b> is an author and technical editor with experience in application development, database management, machine learning, and deep learning. He has written hundreds of books and articles helping everyday people learn everything from networking to database management.</b> ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9333"}},{"authorId":9109,"name":"John Paul Mueller","slug":"john-paul-mueller","description":" <p><b>John Mueller</b> has produced 114 books and more than 600 articles on topics ranging from functional programming techniques to working with Amazon Web Services &#40;AWS&#41;. <b>Luca Massaron,</b> a Google Developer Expert &#40;GDE&#41;,??interprets big data and transforms it into smart data through simple and effective data mining and machine learning techniques. ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9109"}}],"primaryCategoryTaxonomy":{"categoryId":33604,"title":"MATLAB","slug":"matlab","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33604"}},"secondaryCategoryTaxonomy":{"categoryId":0,"title":null,"slug":null,"_links":null},"tertiaryCategoryTaxonomy":{"categoryId":0,"title":null,"slug":null,"_links":null},"trendingArticles":[{"articleId":192609,"title":"How to Pray the Rosary: A Comprehensive Guide","slug":"how-to-pray-the-rosary","categoryList":["body-mind-spirit","religion-spirituality","christianity","catholicism"],"_links":{"self":"/articles/192609"}},{"articleId":208741,"title":"Kabbalah For Dummies Cheat Sheet","slug":"kabbalah-for-dummies-cheat-sheet","categoryList":["body-mind-spirit","religion-spirituality","kabbalah"],"_links":{"self":"/articles/208741"}},{"articleId":230957,"title":"Nikon D3400 For Dummies Cheat Sheet","slug":"nikon-d3400-dummies-cheat-sheet","categoryList":["home-auto-hobbies","photography"],"_links":{"self":"/articles/230957"}},{"articleId":235851,"title":"Praying the Rosary and Meditating on the Mysteries","slug":"praying-rosary-meditating-mysteries","categoryList":["body-mind-spirit","religion-spirituality","christianity","catholicism"],"_links":{"self":"/articles/235851"}},{"articleId":284787,"title":"What Your Society Says About You","slug":"what-your-society-says-about-you","categoryList":["academics-the-arts","humanities"],"_links":{"self":"/articles/284787"}}],"inThisArticle":[],"relatedArticles":{"fromBook":[{"articleId":207617,"title":"MATLAB For Dummies Cheat Sheet","slug":"matlab-for-dummies-cheat-sheet","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/207617"}},{"articleId":203429,"title":"How to Save a Formula or Command as a Script in MATLAB","slug":"how-to-save-a-formula-or-command-as-a-script-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203429"}},{"articleId":203425,"title":"How to Write Your First MATLAB Script","slug":"how-to-write-your-first-matlab-script","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203425"}},{"articleId":203424,"title":"How to Make a Flat Bar Chart in MATLAB","slug":"how-to-make-a-flat-bar-chart-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203424"}},{"articleId":203423,"title":"How to Install the Symbolic Math Toolbox to Use with MATLAB","slug":"how-to-install-the-symbolic-math-toolbox-to-use-with-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203423"}}],"fromCategory":[{"articleId":207617,"title":"MATLAB For Dummies Cheat Sheet","slug":"matlab-for-dummies-cheat-sheet","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/207617"}},{"articleId":203429,"title":"How to Save a Formula or Command as a Script in MATLAB","slug":"how-to-save-a-formula-or-command-as-a-script-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203429"}},{"articleId":203425,"title":"How to Write Your First MATLAB Script","slug":"how-to-write-your-first-matlab-script","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203425"}},{"articleId":203424,"title":"How to Make a Flat Bar Chart in MATLAB","slug":"how-to-make-a-flat-bar-chart-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203424"}},{"articleId":203423,"title":"How to Install the Symbolic Math Toolbox to Use with MATLAB","slug":"how-to-install-the-symbolic-math-toolbox-to-use-with-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203423"}}]},"hasRelatedBookFromSearch":false,"relatedBook":{"bookId":281772,"slug":"matlab-for-dummies","isbn":"9781119796886","categoryList":["technology","programming-web-design","matlab"],"amazon":{"default":"https://www.amazon.com/gp/product/1119796881/ref=as_li_tl?ie=UTF8&tag=wiley01-20","ca":"https://www.amazon.ca/gp/product/1119796881/ref=as_li_tl?ie=UTF8&tag=wiley01-20","indigo_ca":"http://www.tkqlhce.com/click-9208661-13710633?url=https://www.chapters.indigo.ca/en-ca/books/product/1119796881-item.html&cjsku=978111945484","gb":"https://www.amazon.co.uk/gp/product/1119796881/ref=as_li_tl?ie=UTF8&tag=wiley01-20","de":"https://www.amazon.de/gp/product/1119796881/ref=as_li_tl?ie=UTF8&tag=wiley01-20"},"image":{"src":"https://www.dummies.com/wp-content/uploads/matlab-for-dummies-2e-cover-9781119796886-203x255.jpg","width":203,"height":255},"title":"MATLAB For Dummies","testBankPinActivationLink":"","bookOutOfPrint":true,"authorsInfo":"<p><p><b>John Paul Mueller</b> is an author and technical editor with experience in application development, database management, machine learning, and deep learning. He has written hundreds of books and articles helping everyday people learn everything from networking to database management.</b> <p><b>John Mueller</b> has produced 114 books and more than 600 articles on topics ranging from functional programming techniques to working with Amazon Web Services &#40;AWS&#41;. <b>Luca Massaron,</b> a Google Developer Expert &#40;GDE&#41;,??interprets big data and transforms it into smart data through simple and effective data mining and machine learning techniques.</p>","authors":[{"authorId":9333,"name":"Jim Sizemore","slug":"jim-sizemore","description":" <p><b>John Paul Mueller</b> is an author and technical editor with experience in application development, database management, machine learning, and deep learning. He has written hundreds of books and articles helping everyday people learn everything from networking to database management.</b> ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9333"}},{"authorId":9109,"name":"John Paul Mueller","slug":"john-paul-mueller","description":" <p><b>John Mueller</b> has produced 114 books and more than 600 articles on topics ranging from functional programming techniques to working with Amazon Web Services &#40;AWS&#41;. <b>Luca Massaron,</b> a Google Developer Expert &#40;GDE&#41;,??interprets big data and transforms it into smart data through simple and effective data mining and machine learning techniques. ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9109"}}],"_links":{"self":"https://dummies-api.dummies.com/v2/books/"}},"collections":[],"articleAds":{"footerAd":"<div class=\"du-ad-region row\" id=\"article_page_adhesion_ad\"><div class=\"du-ad-unit col-md-12\" data-slot-id=\"article_page_adhesion_ad\" data-refreshed=\"false\" \r\n data-target = \"[{&quot;key&quot;:&quot;cat&quot;,&quot;values&quot;:[&quot;technology&quot;,&quot;programming-web-design&quot;,&quot;matlab&quot;]},{&quot;key&quot;:&quot;isbn&quot;,&quot;values&quot;:[&quot;9781119796886&quot;]}]\" id=\"du-slot-6322199147f75\"></div></div>","rightAd":"<div class=\"du-ad-region row\" id=\"article_page_right_ad\"><div class=\"du-ad-unit col-md-12\" data-slot-id=\"article_page_right_ad\" data-refreshed=\"false\" \r\n data-target = \"[{&quot;key&quot;:&quot;cat&quot;,&quot;values&quot;:[&quot;technology&quot;,&quot;programming-web-design&quot;,&quot;matlab&quot;]},{&quot;key&quot;:&quot;isbn&quot;,&quot;values&quot;:[&quot;9781119796886&quot;]}]\" id=\"du-slot-6322199148825\"></div></div>"},"articleType":{"articleType":"Step by Step","articleList":null,"content":[{"title":"Click Set Path in the Environment group on the Toolstrip’s Home tab.","thumb":{"src":"https://www.dummies.com/wp-content/uploads/454144.medium.jpg","width":200,"height":139},"image":{"src":"https://www.dummies.com/wp-content/uploads/454142.image0.jpg","width":535,"height":372},"content":"<p>You see the Set Path dialog box.</p>\n<p>This dialog box lists all the places the MATLAB searches for data, with the default location listed first. You can use these techniques to work with existing folders (go to Step 3 when you&#8217;re finished):</p>\n<p><i>To set an existing folder as the default folder</i>, highlight the folder in the list and click Move to Top.</p>\n<p><i>To stop using an existing folder</i>, highlight the folder in the list and click Remove.</p>\n"},{"title":"Click Add Folder.","thumb":{"src":"https://www.dummies.com/wp-content/uploads/454145.medium.jpg","width":200,"height":159},"image":{"src":"https://www.dummies.com/wp-content/uploads/454143.image1.jpg","width":501,"height":400},"content":"<p>You see the Add Folder to Path dialog box.</p>\n<p>This dialog box lets you choose an existing folder that doesn&#8217;t appear in the current list or add a new folder to use:</p>\n<p><i>To use a folder that exists on your hard drive</i>, use the dialog box&#8217;s tree structure to navigate to the folder, highlight its entry, and then click Select Folder.</p>\n<p><i>To create a new folder</i>, highlight the parent folder in the dialog box&#8217;s tree structure, click New Folder, type the name of the folder, press Enter, and then click Select Folder.</p>\n"},{"title":"Click Save.","thumb":{"src":null,"width":0,"height":0},"image":{"src":null,"width":0,"height":0},"content":"<p>MATLAB makes the folder you select the new default folder. (You may see a User Account Control dialog box when working with Windows; click Yes to allow Windows to perform the task.)</p>\n"},{"title":"Click Close.","thumb":{"src":null,"width":0,"height":0},"image":{"src":null,"width":0,"height":0},"content":"<p>The Set Path dialog box closes.</p>\n"},{"title":"Type the new location in the Address field.","thumb":{"src":null,"width":0,"height":0},"image":{"src":null,"width":0,"height":0},"content":"<p>The Current Folder display changes to show the new location.</p>\n"}],"videoInfo":{"videoId":null,"name":null,"accountId":null,"playerId":null,"thumbnailUrl":null,"description":null,"uploadDate":null}},"sponsorship":{"sponsorshipPage":false,"backgroundImage":{"src":null,"width":0,"height":0},"brandingLine":"","brandingLink":"","brandingLogo":{"src":null,"width":0,"height":0},"sponsorAd":"","sponsorEbookTitle":"","sponsorEbookLink":"","sponsorEbookImage":{"src":null,"width":0,"height":0}},"primaryLearningPath":"Advance","lifeExpectancy":null,"lifeExpectancySetFrom":null,"dummiesForKids":"no","sponsoredContent":"no","adInfo":"","adPairKey":[]},"status":"publish","visibility":"public","articleId":203430},{"headers":{"creationTime":"2016-03-27T09:31:27+00:00","modifiedTime":"2016-03-27T09:31:27+00:00","timestamp":"2022-09-14T18:12:33+00:00"},"data":{"breadcrumbs":[{"name":"Technology","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33512"},"slug":"technology","categoryId":33512},{"name":"Programming & Web Design","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33592"},"slug":"programming-web-design","categoryId":33592},{"name":"MATLAB","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33604"},"slug":"matlab","categoryId":33604}],"title":"How to Save a Formula or Command as a Script in MATLAB","strippedTitle":"how to save a formula or command as a script in matlab","slug":"how-to-save-a-formula-or-command-as-a-script-in-matlab","canonicalUrl":"","seo":{"metaDescription":"After you create a formula or command that you want to use to perform a number of calculations in MATLAB, be sure to save it to disk. Of course, you can save an","noIndex":0,"noFollow":0},"content":"<p>After you create a formula or command that you want to use to perform a number of calculations in MATLAB, be sure to save it to disk. Of course, you can save anything that you want to disk. The following steps help you save any formula or command that you want to disk so that you can review it later:</p>","description":"<p>After you create a formula or command that you want to use to perform a number of calculations in MATLAB, be sure to save it to disk. Of course, you can save anything that you want to disk. The following steps help you save any formula or command that you want to disk so that you can review it later:</p>","blurb":"","authors":[{"authorId":9333,"name":"Jim Sizemore","slug":"jim-sizemore","description":" <p><b>John Paul Mueller</b> is an author and technical editor with experience in application development, database management, machine learning, and deep learning. He has written hundreds of books and articles helping everyday people learn everything from networking to database management.</b> ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9333"}},{"authorId":9109,"name":"John Paul Mueller","slug":"john-paul-mueller","description":" <p><b>John Mueller</b> has produced 114 books and more than 600 articles on topics ranging from functional programming techniques to working with Amazon Web Services &#40;AWS&#41;. <b>Luca Massaron,</b> a Google Developer Expert &#40;GDE&#41;,??interprets big data and transforms it into smart data through simple and effective data mining and machine learning techniques. ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9109"}}],"primaryCategoryTaxonomy":{"categoryId":33604,"title":"MATLAB","slug":"matlab","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33604"}},"secondaryCategoryTaxonomy":{"categoryId":0,"title":null,"slug":null,"_links":null},"tertiaryCategoryTaxonomy":{"categoryId":0,"title":null,"slug":null,"_links":null},"trendingArticles":[{"articleId":192609,"title":"How to Pray the Rosary: A Comprehensive Guide","slug":"how-to-pray-the-rosary","categoryList":["body-mind-spirit","religion-spirituality","christianity","catholicism"],"_links":{"self":"/articles/192609"}},{"articleId":208741,"title":"Kabbalah For Dummies Cheat Sheet","slug":"kabbalah-for-dummies-cheat-sheet","categoryList":["body-mind-spirit","religion-spirituality","kabbalah"],"_links":{"self":"/articles/208741"}},{"articleId":230957,"title":"Nikon D3400 For Dummies Cheat Sheet","slug":"nikon-d3400-dummies-cheat-sheet","categoryList":["home-auto-hobbies","photography"],"_links":{"self":"/articles/230957"}},{"articleId":235851,"title":"Praying the Rosary and Meditating on the Mysteries","slug":"praying-rosary-meditating-mysteries","categoryList":["body-mind-spirit","religion-spirituality","christianity","catholicism"],"_links":{"self":"/articles/235851"}},{"articleId":284787,"title":"What Your Society Says About You","slug":"what-your-society-says-about-you","categoryList":["academics-the-arts","humanities"],"_links":{"self":"/articles/284787"}}],"inThisArticle":[],"relatedArticles":{"fromBook":[{"articleId":207617,"title":"MATLAB For Dummies Cheat Sheet","slug":"matlab-for-dummies-cheat-sheet","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/207617"}},{"articleId":203430,"title":"How to Temporarily Change the Current Folder in MATLAB","slug":"how-to-temporarily-change-the-current-folder-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203430"}},{"articleId":203425,"title":"How to Write Your First MATLAB Script","slug":"how-to-write-your-first-matlab-script","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203425"}},{"articleId":203424,"title":"How to Make a Flat Bar Chart in MATLAB","slug":"how-to-make-a-flat-bar-chart-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203424"}},{"articleId":203423,"title":"How to Install the Symbolic Math Toolbox to Use with MATLAB","slug":"how-to-install-the-symbolic-math-toolbox-to-use-with-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203423"}}],"fromCategory":[{"articleId":207617,"title":"MATLAB For Dummies Cheat Sheet","slug":"matlab-for-dummies-cheat-sheet","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/207617"}},{"articleId":203430,"title":"How to Temporarily Change the Current Folder in MATLAB","slug":"how-to-temporarily-change-the-current-folder-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203430"}},{"articleId":203425,"title":"How to Write Your First MATLAB Script","slug":"how-to-write-your-first-matlab-script","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203425"}},{"articleId":203424,"title":"How to Make a Flat Bar Chart in MATLAB","slug":"how-to-make-a-flat-bar-chart-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203424"}},{"articleId":203423,"title":"How to Install the Symbolic Math Toolbox to Use with MATLAB","slug":"how-to-install-the-symbolic-math-toolbox-to-use-with-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203423"}}]},"hasRelatedBookFromSearch":false,"relatedBook":{"bookId":281772,"slug":"matlab-for-dummies","isbn":"9781119796886","categoryList":["technology","programming-web-design","matlab"],"amazon":{"default":"https://www.amazon.com/gp/product/1119796881/ref=as_li_tl?ie=UTF8&tag=wiley01-20","ca":"https://www.amazon.ca/gp/product/1119796881/ref=as_li_tl?ie=UTF8&tag=wiley01-20","indigo_ca":"http://www.tkqlhce.com/click-9208661-13710633?url=https://www.chapters.indigo.ca/en-ca/books/product/1119796881-item.html&cjsku=978111945484","gb":"https://www.amazon.co.uk/gp/product/1119796881/ref=as_li_tl?ie=UTF8&tag=wiley01-20","de":"https://www.amazon.de/gp/product/1119796881/ref=as_li_tl?ie=UTF8&tag=wiley01-20"},"image":{"src":"https://www.dummies.com/wp-content/uploads/matlab-for-dummies-2e-cover-9781119796886-203x255.jpg","width":203,"height":255},"title":"MATLAB For Dummies","testBankPinActivationLink":"","bookOutOfPrint":true,"authorsInfo":"<p><p><b>John Paul Mueller</b> is an author and technical editor with experience in application development, database management, machine learning, and deep learning. He has written hundreds of books and articles helping everyday people learn everything from networking to database management.</b> <p><b>John Mueller</b> has produced 114 books and more than 600 articles on topics ranging from functional programming techniques to working with Amazon Web Services &#40;AWS&#41;. <b>Luca Massaron,</b> a Google Developer Expert &#40;GDE&#41;,??interprets big data and transforms it into smart data through simple and effective data mining and machine learning techniques.</p>","authors":[{"authorId":9333,"name":"Jim Sizemore","slug":"jim-sizemore","description":" <p><b>John Paul Mueller</b> is an author and technical editor with experience in application development, database management, machine learning, and deep learning. He has written hundreds of books and articles helping everyday people learn everything from networking to database management.</b> ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9333"}},{"authorId":9109,"name":"John Paul Mueller","slug":"john-paul-mueller","description":" <p><b>John Mueller</b> has produced 114 books and more than 600 articles on topics ranging from functional programming techniques to working with Amazon Web Services &#40;AWS&#41;. <b>Luca Massaron,</b> a Google Developer Expert &#40;GDE&#41;,??interprets big data and transforms it into smart data through simple and effective data mining and machine learning techniques. ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9109"}}],"_links":{"self":"https://dummies-api.dummies.com/v2/books/"}},"collections":[],"articleAds":{"footerAd":"<div class=\"du-ad-region row\" id=\"article_page_adhesion_ad\"><div class=\"du-ad-unit col-md-12\" data-slot-id=\"article_page_adhesion_ad\" data-refreshed=\"false\" \r\n data-target = \"[{&quot;key&quot;:&quot;cat&quot;,&quot;values&quot;:[&quot;technology&quot;,&quot;programming-web-design&quot;,&quot;matlab&quot;]},{&quot;key&quot;:&quot;isbn&quot;,&quot;values&quot;:[&quot;9781119796886&quot;]}]\" id=\"du-slot-632219913db6d\"></div></div>","rightAd":"<div class=\"du-ad-region row\" id=\"article_page_right_ad\"><div class=\"du-ad-unit col-md-12\" data-slot-id=\"article_page_right_ad\" data-refreshed=\"false\" \r\n data-target = \"[{&quot;key&quot;:&quot;cat&quot;,&quot;values&quot;:[&quot;technology&quot;,&quot;programming-web-design&quot;,&quot;matlab&quot;]},{&quot;key&quot;:&quot;isbn&quot;,&quot;values&quot;:[&quot;9781119796886&quot;]}]\" id=\"du-slot-632219913e569\"></div></div>"},"articleType":{"articleType":"Step by Step","articleList":null,"content":[{"title":"Choose a location to save the formula or command in the Address field.","thumb":{"src":null,"width":0,"height":0},"image":{"src":null,"width":0,"height":0},"content":"<p>Right-click the formula or command that you want to save in the Command History window.</p>\n"},{"title":"Choose Create Script from the context menu.","thumb":{"src":"https://www.dummies.com/wp-content/uploads/454151.medium.jpg","width":200,"height":77},"image":{"src":"https://www.dummies.com/wp-content/uploads/454148.image0.jpg","width":535,"height":207},"content":"<p>You see the Editor window. The script is currently untitled, so you see the script name as Untitled*.</p>\n<p>If you want to select multiple commands to place in a script, you can choose them by clicking on the first command, and then using Ctrl+Click to select any additional commands. Each time you Ctrl+Click on a command, MATLAB highlights its entry. The commands will appear in the script file in the same order in which they appear in the Command History window.</p>\n"},{"title":"Click Save on the Editor tab.","thumb":{"src":"https://www.dummies.com/wp-content/uploads/454152.medium.jpg","width":200,"height":159},"image":{"src":"https://www.dummies.com/wp-content/uploads/454149.image1.jpg","width":501,"height":400},"content":"<p>You see the Select File for Save As dialog box.</p>\n"},{"title":"In the left pane, highlight the location you want to use to save the file.","thumb":{"src":null,"width":0,"height":0},"image":{"src":null,"width":0,"height":0},"content":"<p>You will see a File Name field.</p>\n"},{"title":"Type a name for the script in the File Name field.","thumb":{"src":null,"width":0,"height":0},"image":{"src":null,"width":0,"height":0},"content":"<p>The example uses <span class=\"code\">FirstScript.m</span>. However, when you save your own scripts, you should use a name that will help you remember the content of the file. Descriptive names are easy to remember and make precisely locating the script you want much easier later.</p>\n<p>MATLAB filenames can contain only letters and numbers. You can&#8217;t use spaces in a MATLAB filename. However, you can use the underscore in place of a space.</p>\n"},{"title":"Click Save.","thumb":{"src":null,"width":0,"height":0},"image":{"src":null,"width":0,"height":0},"content":"<p>MATLAB saves the script for you so that you can reuse it later. The title bar changes to show the script name and its location on disk.</p>\n"},{"title":"Close the Editor window.","thumb":{"src":"https://www.dummies.com/wp-content/uploads/454153.medium.jpg","width":200,"height":236},"image":{"src":"https://www.dummies.com/wp-content/uploads/454150.image2.jpg","width":338,"height":400},"content":"<p>The Current Folder window displays the folder and script file.</p>\n"}],"videoInfo":{"videoId":null,"name":null,"accountId":null,"playerId":null,"thumbnailUrl":null,"description":null,"uploadDate":null}},"sponsorship":{"sponsorshipPage":false,"backgroundImage":{"src":null,"width":0,"height":0},"brandingLine":"","brandingLink":"","brandingLogo":{"src":null,"width":0,"height":0},"sponsorAd":"","sponsorEbookTitle":"","sponsorEbookLink":"","sponsorEbookImage":{"src":null,"width":0,"height":0}},"primaryLearningPath":"Advance","lifeExpectancy":null,"lifeExpectancySetFrom":null,"dummiesForKids":"no","sponsoredContent":"no","adInfo":"","adPairKey":[]},"status":"publish","visibility":"public","articleId":203429},{"headers":{"creationTime":"2016-03-27T09:31:02+00:00","modifiedTime":"2016-03-27T09:31:02+00:00","timestamp":"2022-09-14T18:12:33+00:00"},"data":{"breadcrumbs":[{"name":"Technology","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33512"},"slug":"technology","categoryId":33512},{"name":"Programming & Web Design","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33592"},"slug":"programming-web-design","categoryId":33592},{"name":"MATLAB","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33604"},"slug":"matlab","categoryId":33604}],"title":"How to Write Your First MATLAB Script","strippedTitle":"how to write your first matlab script","slug":"how-to-write-your-first-matlab-script","canonicalUrl":"","seo":{"metaDescription":"MATLAB provides many different ways to write scripts. Some of them don’t actually require that you write anything at all! However, the traditional way to create","noIndex":0,"noFollow":0},"content":"<p>MATLAB provides many different ways to write scripts. Some of them don’t actually require that you write anything at all! However, the traditional way to create a script in any application is to write it. The most common first script in the entire world is the “Hello World” example. The following steps demonstrate how to create such a script using MATLAB.</p>","description":"<p>MATLAB provides many different ways to write scripts. Some of them don’t actually require that you write anything at all! However, the traditional way to create a script in any application is to write it. The most common first script in the entire world is the “Hello World” example. The following steps demonstrate how to create such a script using MATLAB.</p>","blurb":"","authors":[{"authorId":9333,"name":"Jim Sizemore","slug":"jim-sizemore","description":" <p><b>John Paul Mueller</b> is an author and technical editor with experience in application development, database management, machine learning, and deep learning. He has written hundreds of books and articles helping everyday people learn everything from networking to database management.</b> ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9333"}},{"authorId":9109,"name":"John Paul Mueller","slug":"john-paul-mueller","description":" <p><b>John Mueller</b> has produced 114 books and more than 600 articles on topics ranging from functional programming techniques to working with Amazon Web Services &#40;AWS&#41;. <b>Luca Massaron,</b> a Google Developer Expert &#40;GDE&#41;,??interprets big data and transforms it into smart data through simple and effective data mining and machine learning techniques. ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9109"}}],"primaryCategoryTaxonomy":{"categoryId":33604,"title":"MATLAB","slug":"matlab","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33604"}},"secondaryCategoryTaxonomy":{"categoryId":0,"title":null,"slug":null,"_links":null},"tertiaryCategoryTaxonomy":{"categoryId":0,"title":null,"slug":null,"_links":null},"trendingArticles":[{"articleId":192609,"title":"How to Pray the Rosary: A Comprehensive Guide","slug":"how-to-pray-the-rosary","categoryList":["body-mind-spirit","religion-spirituality","christianity","catholicism"],"_links":{"self":"/articles/192609"}},{"articleId":208741,"title":"Kabbalah For Dummies Cheat Sheet","slug":"kabbalah-for-dummies-cheat-sheet","categoryList":["body-mind-spirit","religion-spirituality","kabbalah"],"_links":{"self":"/articles/208741"}},{"articleId":230957,"title":"Nikon D3400 For Dummies Cheat Sheet","slug":"nikon-d3400-dummies-cheat-sheet","categoryList":["home-auto-hobbies","photography"],"_links":{"self":"/articles/230957"}},{"articleId":235851,"title":"Praying the Rosary and Meditating on the Mysteries","slug":"praying-rosary-meditating-mysteries","categoryList":["body-mind-spirit","religion-spirituality","christianity","catholicism"],"_links":{"self":"/articles/235851"}},{"articleId":284787,"title":"What Your Society Says About You","slug":"what-your-society-says-about-you","categoryList":["academics-the-arts","humanities"],"_links":{"self":"/articles/284787"}}],"inThisArticle":[],"relatedArticles":{"fromBook":[{"articleId":207617,"title":"MATLAB For Dummies Cheat Sheet","slug":"matlab-for-dummies-cheat-sheet","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/207617"}},{"articleId":203430,"title":"How to Temporarily Change the Current Folder in MATLAB","slug":"how-to-temporarily-change-the-current-folder-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203430"}},{"articleId":203429,"title":"How to Save a Formula or Command as a Script in MATLAB","slug":"how-to-save-a-formula-or-command-as-a-script-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203429"}},{"articleId":203424,"title":"How to Make a Flat Bar Chart in MATLAB","slug":"how-to-make-a-flat-bar-chart-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203424"}},{"articleId":203423,"title":"How to Install the Symbolic Math Toolbox to Use with MATLAB","slug":"how-to-install-the-symbolic-math-toolbox-to-use-with-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203423"}}],"fromCategory":[{"articleId":207617,"title":"MATLAB For Dummies Cheat Sheet","slug":"matlab-for-dummies-cheat-sheet","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/207617"}},{"articleId":203430,"title":"How to Temporarily Change the Current Folder in MATLAB","slug":"how-to-temporarily-change-the-current-folder-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203430"}},{"articleId":203429,"title":"How to Save a Formula or Command as a Script in MATLAB","slug":"how-to-save-a-formula-or-command-as-a-script-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203429"}},{"articleId":203424,"title":"How to Make a Flat Bar Chart in MATLAB","slug":"how-to-make-a-flat-bar-chart-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203424"}},{"articleId":203423,"title":"How to Install the Symbolic Math Toolbox to Use with MATLAB","slug":"how-to-install-the-symbolic-math-toolbox-to-use-with-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203423"}}]},"hasRelatedBookFromSearch":false,"relatedBook":{"bookId":281772,"slug":"matlab-for-dummies","isbn":"9781119796886","categoryList":["technology","programming-web-design","matlab"],"amazon":{"default":"https://www.amazon.com/gp/product/1119796881/ref=as_li_tl?ie=UTF8&tag=wiley01-20","ca":"https://www.amazon.ca/gp/product/1119796881/ref=as_li_tl?ie=UTF8&tag=wiley01-20","indigo_ca":"http://www.tkqlhce.com/click-9208661-13710633?url=https://www.chapters.indigo.ca/en-ca/books/product/1119796881-item.html&cjsku=978111945484","gb":"https://www.amazon.co.uk/gp/product/1119796881/ref=as_li_tl?ie=UTF8&tag=wiley01-20","de":"https://www.amazon.de/gp/product/1119796881/ref=as_li_tl?ie=UTF8&tag=wiley01-20"},"image":{"src":"https://www.dummies.com/wp-content/uploads/matlab-for-dummies-2e-cover-9781119796886-203x255.jpg","width":203,"height":255},"title":"MATLAB For Dummies","testBankPinActivationLink":"","bookOutOfPrint":true,"authorsInfo":"<p><p><b>John Paul Mueller</b> is an author and technical editor with experience in application development, database management, machine learning, and deep learning. He has written hundreds of books and articles helping everyday people learn everything from networking to database management.</b> <p><b>John Mueller</b> has produced 114 books and more than 600 articles on topics ranging from functional programming techniques to working with Amazon Web Services &#40;AWS&#41;. <b>Luca Massaron,</b> a Google Developer Expert &#40;GDE&#41;,??interprets big data and transforms it into smart data through simple and effective data mining and machine learning techniques.</p>","authors":[{"authorId":9333,"name":"Jim Sizemore","slug":"jim-sizemore","description":" <p><b>John Paul Mueller</b> is an author and technical editor with experience in application development, database management, machine learning, and deep learning. He has written hundreds of books and articles helping everyday people learn everything from networking to database management.</b> ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9333"}},{"authorId":9109,"name":"John Paul Mueller","slug":"john-paul-mueller","description":" <p><b>John Mueller</b> has produced 114 books and more than 600 articles on topics ranging from functional programming techniques to working with Amazon Web Services &#40;AWS&#41;. <b>Luca Massaron,</b> a Google Developer Expert &#40;GDE&#41;,??interprets big data and transforms it into smart data through simple and effective data mining and machine learning techniques. ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9109"}}],"_links":{"self":"https://dummies-api.dummies.com/v2/books/"}},"collections":[],"articleAds":{"footerAd":"<div class=\"du-ad-region row\" id=\"article_page_adhesion_ad\"><div class=\"du-ad-unit col-md-12\" data-slot-id=\"article_page_adhesion_ad\" data-refreshed=\"false\" \r\n data-target = \"[{&quot;key&quot;:&quot;cat&quot;,&quot;values&quot;:[&quot;technology&quot;,&quot;programming-web-design&quot;,&quot;matlab&quot;]},{&quot;key&quot;:&quot;isbn&quot;,&quot;values&quot;:[&quot;9781119796886&quot;]}]\" id=\"du-slot-632219912813b\"></div></div>","rightAd":"<div class=\"du-ad-region row\" id=\"article_page_right_ad\"><div class=\"du-ad-unit col-md-12\" data-slot-id=\"article_page_right_ad\" data-refreshed=\"false\" \r\n data-target = \"[{&quot;key&quot;:&quot;cat&quot;,&quot;values&quot;:[&quot;technology&quot;,&quot;programming-web-design&quot;,&quot;matlab&quot;]},{&quot;key&quot;:&quot;isbn&quot;,&quot;values&quot;:[&quot;9781119796886&quot;]}]\" id=\"du-slot-63221991289f4\"></div></div>"},"articleType":{"articleType":"Step by Step","articleList":null,"content":[{"title":"Click New Script on the Home tab of the menu.","thumb":{"src":"https://www.dummies.com/wp-content/uploads/454476.medium.jpg","width":200,"height":77},"image":{"src":"https://www.dummies.com/wp-content/uploads/454472.image0.jpg","width":535,"height":207},"content":"<p>You see the Editor window appear. This window provides the means to interact with scripts in various ways. This Editor tab is the one you use most often when creating new scripts.</p>\n"},{"title":"Type’Hello World’.","thumb":{"src":"https://www.dummies.com/wp-content/uploads/454477.medium.jpg","width":200,"height":77},"image":{"src":"https://www.dummies.com/wp-content/uploads/454473.image1.jpg","width":535,"height":207},"content":"<p>The text is highlighted in a light orange, and a squiggly red line appears under it. When you hover your mouse over the squiggly line, you see an error message.</p>\n<p>In this case, you ignore the error because you want to see the output. However, if you wanted to correct the problem (the way MATLAB thinks you should), you could either type a semicolon or click Fix to resolve the issue. MATLAB will always tell you if it thinks that you&#8217;re making a mistake, but sometimes MATLAB is overzealous (as in this situation).</p>\n"},{"title":"Click Run on the Editor tab of the Editor window.","thumb":{"src":"https://www.dummies.com/wp-content/uploads/454478.medium.jpg","width":200,"height":159},"image":{"src":"https://www.dummies.com/wp-content/uploads/454474.image2.jpg","width":501,"height":400},"content":"<p>You see a Select File for Save As dialog box. MATLAB always requests that you save your script before you run it to ensure that your script doesn&#8217;t get lost or corrupted in some way should something happen when it runs.</p>\n"},{"title":"Create your directory, type FirstScript.m in the File Name field, and click Save.","thumb":{"src":"https://www.dummies.com/wp-content/uploads/454479.medium.jpg","width":200,"height":68},"image":{"src":"https://www.dummies.com/wp-content/uploads/454475.image3.jpg","width":535,"height":182},"content":"<p>MATLAB saves your script to disk. All your script files will have an <span class=\"code\">.m</span><span class=\"code\"> </span>extension.</p>\n<p>At this point, you may see a MATLAB Editor dialog box appear. If that happens, simply click the box&#8217;s Add to Path button to make the dialog box disappear. If you don&#8217;t see this box, continue to Step 5.</p>\n"},{"title":"Select the MATLAB window.","thumb":{"src":null,"width":0,"height":0},"image":{"src":null,"width":0,"height":0},"content":"<p>You see the following script output:</p>\n<pre class=\"code\">&gt;&gt; FirstScript\nans =\nHello World</pre>\n<p>The output is telling you that MATLAB has run <span class=\"code\">FirstScript</span>, which is the name of the file containing the script, and that the output is <span class=\"code\">Hello World</span>. This output has been assigned to <span class=\"code\">ans</span>, the default variable.</p>\n"}],"videoInfo":{"videoId":null,"name":null,"accountId":null,"playerId":null,"thumbnailUrl":null,"description":null,"uploadDate":null}},"sponsorship":{"sponsorshipPage":false,"backgroundImage":{"src":null,"width":0,"height":0},"brandingLine":"","brandingLink":"","brandingLogo":{"src":null,"width":0,"height":0},"sponsorAd":"","sponsorEbookTitle":"","sponsorEbookLink":"","sponsorEbookImage":{"src":null,"width":0,"height":0}},"primaryLearningPath":"Advance","lifeExpectancy":null,"lifeExpectancySetFrom":null,"dummiesForKids":"no","sponsoredContent":"no","adInfo":"","adPairKey":[]},"status":"publish","visibility":"public","articleId":203425},{"headers":{"creationTime":"2016-03-27T09:30:57+00:00","modifiedTime":"2016-03-27T09:30:57+00:00","timestamp":"2022-09-14T18:12:33+00:00"},"data":{"breadcrumbs":[{"name":"Technology","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33512"},"slug":"technology","categoryId":33512},{"name":"Programming & Web Design","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33592"},"slug":"programming-web-design","categoryId":33592},{"name":"MATLAB","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33604"},"slug":"matlab","categoryId":33604}],"title":"How to Make a Flat Bar Chart in MATLAB","strippedTitle":"how to make a flat bar chart in matlab","slug":"how-to-make-a-flat-bar-chart-in-matlab","canonicalUrl":"","seo":{"metaDescription":"You can create a 3D bar chart in MATLAB. The bar chart is a standard form of presentation that is mostly used in a business environment. You can use a bar chart","noIndex":0,"noFollow":0},"content":"<p>You can create a 3D bar chart in MATLAB. The bar chart is a standard form of presentation that is mostly used in a business environment. You can use a bar chart to display either 2D or 3D data. When you feed a bar chart a vector, it produces a 2D bar chart. Providing a bar chart with a matrix produces a 3D chart.</p>\n<p>The following steps help you create a 3D bar chart.</p>","description":"<p>You can create a 3D bar chart in MATLAB. The bar chart is a standard form of presentation that is mostly used in a business environment. You can use a bar chart to display either 2D or 3D data. When you feed a bar chart a vector, it produces a 2D bar chart. Providing a bar chart with a matrix produces a 3D chart.</p>\n<p>The following steps help you create a 3D bar chart.</p>","blurb":"","authors":[{"authorId":9333,"name":"Jim Sizemore","slug":"jim-sizemore","description":" <p><b>John Paul Mueller</b> is an author and technical editor with experience in application development, database management, machine learning, and deep learning. He has written hundreds of books and articles helping everyday people learn everything from networking to database management.</b> ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9333"}},{"authorId":9109,"name":"John Paul Mueller","slug":"john-paul-mueller","description":" <p><b>John Mueller</b> has produced 114 books and more than 600 articles on topics ranging from functional programming techniques to working with Amazon Web Services &#40;AWS&#41;. <b>Luca Massaron,</b> a Google Developer Expert &#40;GDE&#41;,??interprets big data and transforms it into smart data through simple and effective data mining and machine learning techniques. ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9109"}}],"primaryCategoryTaxonomy":{"categoryId":33604,"title":"MATLAB","slug":"matlab","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33604"}},"secondaryCategoryTaxonomy":{"categoryId":0,"title":null,"slug":null,"_links":null},"tertiaryCategoryTaxonomy":{"categoryId":0,"title":null,"slug":null,"_links":null},"trendingArticles":[{"articleId":192609,"title":"How to Pray the Rosary: A Comprehensive Guide","slug":"how-to-pray-the-rosary","categoryList":["body-mind-spirit","religion-spirituality","christianity","catholicism"],"_links":{"self":"/articles/192609"}},{"articleId":208741,"title":"Kabbalah For Dummies Cheat Sheet","slug":"kabbalah-for-dummies-cheat-sheet","categoryList":["body-mind-spirit","religion-spirituality","kabbalah"],"_links":{"self":"/articles/208741"}},{"articleId":230957,"title":"Nikon D3400 For Dummies Cheat Sheet","slug":"nikon-d3400-dummies-cheat-sheet","categoryList":["home-auto-hobbies","photography"],"_links":{"self":"/articles/230957"}},{"articleId":235851,"title":"Praying the Rosary and Meditating on the Mysteries","slug":"praying-rosary-meditating-mysteries","categoryList":["body-mind-spirit","religion-spirituality","christianity","catholicism"],"_links":{"self":"/articles/235851"}},{"articleId":284787,"title":"What Your Society Says About You","slug":"what-your-society-says-about-you","categoryList":["academics-the-arts","humanities"],"_links":{"self":"/articles/284787"}}],"inThisArticle":[],"relatedArticles":{"fromBook":[{"articleId":207617,"title":"MATLAB For Dummies Cheat Sheet","slug":"matlab-for-dummies-cheat-sheet","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/207617"}},{"articleId":203430,"title":"How to Temporarily Change the Current Folder in MATLAB","slug":"how-to-temporarily-change-the-current-folder-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203430"}},{"articleId":203429,"title":"How to Save a Formula or Command as a Script in MATLAB","slug":"how-to-save-a-formula-or-command-as-a-script-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203429"}},{"articleId":203425,"title":"How to Write Your First MATLAB Script","slug":"how-to-write-your-first-matlab-script","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203425"}},{"articleId":203423,"title":"How to Install the Symbolic Math Toolbox to Use with MATLAB","slug":"how-to-install-the-symbolic-math-toolbox-to-use-with-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203423"}}],"fromCategory":[{"articleId":207617,"title":"MATLAB For Dummies Cheat Sheet","slug":"matlab-for-dummies-cheat-sheet","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/207617"}},{"articleId":203430,"title":"How to Temporarily Change the Current Folder in MATLAB","slug":"how-to-temporarily-change-the-current-folder-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203430"}},{"articleId":203429,"title":"How to Save a Formula or Command as a Script in MATLAB","slug":"how-to-save-a-formula-or-command-as-a-script-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203429"}},{"articleId":203425,"title":"How to Write Your First MATLAB Script","slug":"how-to-write-your-first-matlab-script","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203425"}},{"articleId":203423,"title":"How to Install the Symbolic Math Toolbox to Use with MATLAB","slug":"how-to-install-the-symbolic-math-toolbox-to-use-with-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203423"}}]},"hasRelatedBookFromSearch":false,"relatedBook":{"bookId":281772,"slug":"matlab-for-dummies","isbn":"9781119796886","categoryList":["technology","programming-web-design","matlab"],"amazon":{"default":"https://www.amazon.com/gp/product/1119796881/ref=as_li_tl?ie=UTF8&tag=wiley01-20","ca":"https://www.amazon.ca/gp/product/1119796881/ref=as_li_tl?ie=UTF8&tag=wiley01-20","indigo_ca":"http://www.tkqlhce.com/click-9208661-13710633?url=https://www.chapters.indigo.ca/en-ca/books/product/1119796881-item.html&cjsku=978111945484","gb":"https://www.amazon.co.uk/gp/product/1119796881/ref=as_li_tl?ie=UTF8&tag=wiley01-20","de":"https://www.amazon.de/gp/product/1119796881/ref=as_li_tl?ie=UTF8&tag=wiley01-20"},"image":{"src":"https://www.dummies.com/wp-content/uploads/matlab-for-dummies-2e-cover-9781119796886-203x255.jpg","width":203,"height":255},"title":"MATLAB For Dummies","testBankPinActivationLink":"","bookOutOfPrint":true,"authorsInfo":"<p><p><b>John Paul Mueller</b> is an author and technical editor with experience in application development, database management, machine learning, and deep learning. He has written hundreds of books and articles helping everyday people learn everything from networking to database management.</b> <p><b>John Mueller</b> has produced 114 books and more than 600 articles on topics ranging from functional programming techniques to working with Amazon Web Services &#40;AWS&#41;. <b>Luca Massaron,</b> a Google Developer Expert &#40;GDE&#41;,??interprets big data and transforms it into smart data through simple and effective data mining and machine learning techniques.</p>","authors":[{"authorId":9333,"name":"Jim Sizemore","slug":"jim-sizemore","description":" <p><b>John Paul Mueller</b> is an author and technical editor with experience in application development, database management, machine learning, and deep learning. He has written hundreds of books and articles helping everyday people learn everything from networking to database management.</b> ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9333"}},{"authorId":9109,"name":"John Paul Mueller","slug":"john-paul-mueller","description":" <p><b>John Mueller</b> has produced 114 books and more than 600 articles on topics ranging from functional programming techniques to working with Amazon Web Services &#40;AWS&#41;. <b>Luca Massaron,</b> a Google Developer Expert &#40;GDE&#41;,??interprets big data and transforms it into smart data through simple and effective data mining and machine learning techniques. ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9109"}}],"_links":{"self":"https://dummies-api.dummies.com/v2/books/"}},"collections":[],"articleAds":{"footerAd":"<div class=\"du-ad-region row\" id=\"article_page_adhesion_ad\"><div class=\"du-ad-unit col-md-12\" data-slot-id=\"article_page_adhesion_ad\" data-refreshed=\"false\" \r\n data-target = \"[{&quot;key&quot;:&quot;cat&quot;,&quot;values&quot;:[&quot;technology&quot;,&quot;programming-web-design&quot;,&quot;matlab&quot;]},{&quot;key&quot;:&quot;isbn&quot;,&quot;values&quot;:[&quot;9781119796886&quot;]}]\" id=\"du-slot-632219911eaf5\"></div></div>","rightAd":"<div class=\"du-ad-region row\" id=\"article_page_right_ad\"><div class=\"du-ad-unit col-md-12\" data-slot-id=\"article_page_right_ad\" data-refreshed=\"false\" \r\n data-target = \"[{&quot;key&quot;:&quot;cat&quot;,&quot;values&quot;:[&quot;technology&quot;,&quot;programming-web-design&quot;,&quot;matlab&quot;]},{&quot;key&quot;:&quot;isbn&quot;,&quot;values&quot;:[&quot;9781119796886&quot;]}]\" id=\"du-slot-632219911f365\"></div></div>"},"articleType":{"articleType":"Step by Step","articleList":null,"content":[{"title":"Type SurveyData = [8, 7, 6; 13, 21, 15; 32, 27, 32] and press Enter.","thumb":{"src":null,"width":0,"height":0},"image":{"src":null,"width":0,"height":0},"content":"<p>MATLAB creates a new matrix named <span class=\"code\">SurveyData</span>. You see the following output:</p>\n<pre class=\"code\">SurveyData =\n 8 7 6\n 13 21 15\n 32 27 32</pre>\n"},{"title":"Type bar(SurveyData) and press Enter.","thumb":{"src":"https://www.dummies.com/wp-content/uploads/454460.medium.jpg","width":200,"height":176},"image":{"src":"https://www.dummies.com/wp-content/uploads/454457.image0.jpg","width":452,"height":400},"content":"<p>You see a flat presentation of <span class=\"code\">SurveyData</span>. The x axis shows each of the columns. (The first column is blue, the second is green, and the third is red.) The y axis presents the value of each cell (such as 8, 7, and 6 for the first <span class=\"code\">SurveyData</span> row). The z axis presents each row in a group, and each group corresponds to a number between 1 and 3.</p>\n"},{"title":"Type Bar1 = bar(SurveyData, ‘stacked’) and press Enter.","thumb":{"src":"https://www.dummies.com/wp-content/uploads/454461.medium.jpg","width":200,"height":176},"image":{"src":"https://www.dummies.com/wp-content/uploads/454458.image1.jpg","width":452,"height":400},"content":"<p>You see the same <span class=\"code\">SurveyData</span> matrix presented as a stacked bar chart. In this case, the x axis elements are shown stacked one on top of the other.</p>\n<p>The example also outputs information about the bar chart handles (a means of obtaining access to the plot). The values may differ, but you should see three handles output like the following (each handle is named Bar &#8212; previous versions of MATLAB used a number to represent the handle in the output):</p>\n<pre class=\"code\">Bar1 =\n 1x3 Bar array:\n Bar Bar Bar</pre>\n<p>Each of the z axis elements has its own handle that you use to manipulate it. This is an important part of working with the bar chart later when you want to modify something.</p>\n<p>The <span class=\"code\">bar()</span> function provides you with several alternative presentations:</p>\n<p><span class=\"code\">grouped</span>: This is the default setting.</p>\n<p><span class=\"code\">hist</span>: No spaces appear between the bars for a particular group. The groups do still have spaces between them.</p>\n<p><span class=\"code\">hisc</span>: The groups are positioned so that each group starts at a number on the x axis, rather than being centered on it.</p>\n<p><span class=\"code\">stacked</span>: This is the stacked appearance.</p>\n"},{"title":"Type get(Bar1(1)) and press Enter.","thumb":{"src":null,"width":0,"height":0},"image":{"src":null,"width":0,"height":0},"content":"<p>The <span class=\"code\">get()</span> function obtains the properties you can work with for a particular object. In this case, you request Bar1(1). In other words, this would be the first member of the z axis. You see the following output:</p>\n<pre class=\"code\"> Annotation: [1x1 matlab.graphics.eventdata.Annotation]\n BarLayout: &#8216;stacked&#8217;\n BarWidth: 0.8000\n BaseLine: [1x1 Baseline]\n BaseValue: 0\n BeingDeleted: &#8216;off&#8217;\n BusyAction: &#8216;queue&#8217;\n ButtonDownFcn: &#8216;&#8216;\n Children: []\n Clipping: &#8216;on&#8217;\n CreateFcn: &#8216;&#8216;\n DeleteFcn: &#8216;&#8216;\n DisplayName: &#8216;&#8216;\n EdgeColor: [0 0 0]\n FaceColor: &#8216;flat&#8217;\n HandleVisibility: &#8216;on&#8217;\n HitTest: &#8216;on&#8217;\n Horizontal: &#8216;off&#8217;\n Interruptible: &#8216;on&#8217;\n LineStyle: &#8216;-&#8217;\n LineWidth: 0.5000\n Parent: [1x1 Axes]\n Selected: &#8216;off&#8217;\n SelectionHighlight: &#8216;on&#8217;\n ShowBaseLine: &#8216;on&#8217;\n Tag: &#8216;&#8216;\n Type: &#8216;bar&#8217;\n UIContextMenu: []\n UserData: []\n Visible: &#8216;on&#8217;\n XData: [1 2 3]\n XDataMode: &#8216;auto&#8217;\n XDataSource: &#8216;&#8216;\n YData: [8 13 32]\n YDataSource: &#8216;&#8216;</pre>\n<p>After you know the properties that you can modify for any MATLAB object, you can use those properties to start building scripts. Just creating and then playing with objects is a good way to discover just what MATLAB has to offer.</p>\n<p>Many of these properties will appear foreign to you and you don&#8217;t have to worry about them, but notice that the <span class=\"code\">YData</span> property contains a vector with the three data points for this particular bar.</p>\n<p>It&#8217;s also possible to obtain individual property values. For example, if you use the <span class=\"code\">get(Bar1(1), &#8216;YData&#8217;)</span> command, you see the current <span class=\"code\">YData</span> values for just the first bar.</p>\n"},{"title":"Type set(Bar1(1), ‘YData’, [40, 40, 40]) and press Enter.","thumb":{"src":"https://www.dummies.com/wp-content/uploads/454462.medium.jpg","width":200,"height":176},"image":{"src":"https://www.dummies.com/wp-content/uploads/454459.image2.jpg","width":452,"height":400},"content":"<p>The <span class=\"code\">set()</span> function lets you modify the property values that you see when using the <span class=\"code\">get()</span> function. In this case, you modify the <span class=\"code\">YData</span> property for the first bar &#8212; the blue objects when you see the plot on screen.</p>\n"}],"videoInfo":{"videoId":null,"name":null,"accountId":null,"playerId":null,"thumbnailUrl":null,"description":null,"uploadDate":null}},"sponsorship":{"sponsorshipPage":false,"backgroundImage":{"src":null,"width":0,"height":0},"brandingLine":"","brandingLink":"","brandingLogo":{"src":null,"width":0,"height":0},"sponsorAd":"","sponsorEbookTitle":"","sponsorEbookLink":"","sponsorEbookImage":{"src":null,"width":0,"height":0}},"primaryLearningPath":"Advance","lifeExpectancy":null,"lifeExpectancySetFrom":null,"dummiesForKids":"no","sponsoredContent":"no","adInfo":"","adPairKey":[]},"status":"publish","visibility":"public","articleId":203424},{"headers":{"creationTime":"2016-03-27T09:30:51+00:00","modifiedTime":"2016-03-27T09:30:51+00:00","timestamp":"2022-09-14T18:12:33+00:00"},"data":{"breadcrumbs":[{"name":"Technology","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33512"},"slug":"technology","categoryId":33512},{"name":"Programming & Web Design","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33592"},"slug":"programming-web-design","categoryId":33592},{"name":"MATLAB","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33604"},"slug":"matlab","categoryId":33604}],"title":"How to Install the Symbolic Math Toolbox to Use with MATLAB","strippedTitle":"how to install the symbolic math toolbox to use with matlab","slug":"how-to-install-the-symbolic-math-toolbox-to-use-with-matlab","canonicalUrl":"","seo":{"metaDescription":"Once you have obtained a copy of the Symbolic Math Toolbox to use with MATLAB, you should have a number of files on your hard drive. These files provide everyth","noIndex":0,"noFollow":0},"content":"<p>Once you have obtained a copy of the Symbolic Math Toolbox to use with MATLAB, you should have a number of files on your hard drive. These files provide everything needed to install the Symbolic Math Toolbox. You have two ways by which you can interact with the files:</p>\n<p><b>If you were able to use the download agent, you see a dialog box telling you that the download is complete. At this point, you can perform one of these two tasks:</b></p>\n<p><i>Select the Start Installer option and click Finish to start the installation process. The Symbolic Math Toolbox installer will start automatically.</i></p>\n<p><i>Select the Open Location of the Downloaded Files option and click Finish. You see the location of the files open, and you must double-click the installer file to start the installation process. (The installer file is typically the only executable program in the folder.)</i></p>\n<p><b>If you performed the manual download process, you need to find the download location of the files. You must double-click the installer file to start the installation process. (The installer file is typically the only executable program in the folder.)</b></p>\n<p>Windows platform users may see a User Account Control (UAC) dialog box when starting the installer. Click Yes to give the installer permission to install the Symbolic Math Toolbox. Otherwise, the installation will fail.</p>\n<p>No matter how you start the installer, eventually you see a MathWorks installer dialog box. This dialog box determines the source of the files that you use to perform the installation. (Choosing the Install Using the Internet option downloads the files directly from the MathWorks site — you also have the option of using source files on your hard drive.) The following steps help you complete the installation process.</p>","description":"<p>Once you have obtained a copy of the Symbolic Math Toolbox to use with MATLAB, you should have a number of files on your hard drive. These files provide everything needed to install the Symbolic Math Toolbox. You have two ways by which you can interact with the files:</p>\n<p><b>If you were able to use the download agent, you see a dialog box telling you that the download is complete. At this point, you can perform one of these two tasks:</b></p>\n<p><i>Select the Start Installer option and click Finish to start the installation process. The Symbolic Math Toolbox installer will start automatically.</i></p>\n<p><i>Select the Open Location of the Downloaded Files option and click Finish. You see the location of the files open, and you must double-click the installer file to start the installation process. (The installer file is typically the only executable program in the folder.)</i></p>\n<p><b>If you performed the manual download process, you need to find the download location of the files. You must double-click the installer file to start the installation process. (The installer file is typically the only executable program in the folder.)</b></p>\n<p>Windows platform users may see a User Account Control (UAC) dialog box when starting the installer. Click Yes to give the installer permission to install the Symbolic Math Toolbox. Otherwise, the installation will fail.</p>\n<p>No matter how you start the installer, eventually you see a MathWorks installer dialog box. This dialog box determines the source of the files that you use to perform the installation. (Choosing the Install Using the Internet option downloads the files directly from the MathWorks site — you also have the option of using source files on your hard drive.) The following steps help you complete the installation process.</p>","blurb":"","authors":[{"authorId":9333,"name":"Jim Sizemore","slug":"jim-sizemore","description":" <p><b>John Paul Mueller</b> is an author and technical editor with experience in application development, database management, machine learning, and deep learning. He has written hundreds of books and articles helping everyday people learn everything from networking to database management.</b> ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9333"}},{"authorId":9109,"name":"John Paul Mueller","slug":"john-paul-mueller","description":" <p><b>John Mueller</b> has produced 114 books and more than 600 articles on topics ranging from functional programming techniques to working with Amazon Web Services &#40;AWS&#41;. <b>Luca Massaron,</b> a Google Developer Expert &#40;GDE&#41;,??interprets big data and transforms it into smart data through simple and effective data mining and machine learning techniques. ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9109"}}],"primaryCategoryTaxonomy":{"categoryId":33604,"title":"MATLAB","slug":"matlab","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33604"}},"secondaryCategoryTaxonomy":{"categoryId":0,"title":null,"slug":null,"_links":null},"tertiaryCategoryTaxonomy":{"categoryId":0,"title":null,"slug":null,"_links":null},"trendingArticles":[{"articleId":192609,"title":"How to Pray the Rosary: A Comprehensive Guide","slug":"how-to-pray-the-rosary","categoryList":["body-mind-spirit","religion-spirituality","christianity","catholicism"],"_links":{"self":"/articles/192609"}},{"articleId":208741,"title":"Kabbalah For Dummies Cheat Sheet","slug":"kabbalah-for-dummies-cheat-sheet","categoryList":["body-mind-spirit","religion-spirituality","kabbalah"],"_links":{"self":"/articles/208741"}},{"articleId":230957,"title":"Nikon D3400 For Dummies Cheat Sheet","slug":"nikon-d3400-dummies-cheat-sheet","categoryList":["home-auto-hobbies","photography"],"_links":{"self":"/articles/230957"}},{"articleId":235851,"title":"Praying the Rosary and Meditating on the Mysteries","slug":"praying-rosary-meditating-mysteries","categoryList":["body-mind-spirit","religion-spirituality","christianity","catholicism"],"_links":{"self":"/articles/235851"}},{"articleId":284787,"title":"What Your Society Says About You","slug":"what-your-society-says-about-you","categoryList":["academics-the-arts","humanities"],"_links":{"self":"/articles/284787"}}],"inThisArticle":[],"relatedArticles":{"fromBook":[{"articleId":207617,"title":"MATLAB For Dummies Cheat Sheet","slug":"matlab-for-dummies-cheat-sheet","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/207617"}},{"articleId":203430,"title":"How to Temporarily Change the Current Folder in MATLAB","slug":"how-to-temporarily-change-the-current-folder-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203430"}},{"articleId":203429,"title":"How to Save a Formula or Command as a Script in MATLAB","slug":"how-to-save-a-formula-or-command-as-a-script-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203429"}},{"articleId":203425,"title":"How to Write Your First MATLAB Script","slug":"how-to-write-your-first-matlab-script","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203425"}},{"articleId":203424,"title":"How to Make a Flat Bar Chart in MATLAB","slug":"how-to-make-a-flat-bar-chart-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203424"}}],"fromCategory":[{"articleId":207617,"title":"MATLAB For Dummies Cheat Sheet","slug":"matlab-for-dummies-cheat-sheet","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/207617"}},{"articleId":203430,"title":"How to Temporarily Change the Current Folder in MATLAB","slug":"how-to-temporarily-change-the-current-folder-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203430"}},{"articleId":203429,"title":"How to Save a Formula or Command as a Script in MATLAB","slug":"how-to-save-a-formula-or-command-as-a-script-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203429"}},{"articleId":203425,"title":"How to Write Your First MATLAB Script","slug":"how-to-write-your-first-matlab-script","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203425"}},{"articleId":203424,"title":"How to Make a Flat Bar Chart in MATLAB","slug":"how-to-make-a-flat-bar-chart-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203424"}}]},"hasRelatedBookFromSearch":false,"relatedBook":{"bookId":281772,"slug":"matlab-for-dummies","isbn":"9781119796886","categoryList":["technology","programming-web-design","matlab"],"amazon":{"default":"https://www.amazon.com/gp/product/1119796881/ref=as_li_tl?ie=UTF8&tag=wiley01-20","ca":"https://www.amazon.ca/gp/product/1119796881/ref=as_li_tl?ie=UTF8&tag=wiley01-20","indigo_ca":"http://www.tkqlhce.com/click-9208661-13710633?url=https://www.chapters.indigo.ca/en-ca/books/product/1119796881-item.html&cjsku=978111945484","gb":"https://www.amazon.co.uk/gp/product/1119796881/ref=as_li_tl?ie=UTF8&tag=wiley01-20","de":"https://www.amazon.de/gp/product/1119796881/ref=as_li_tl?ie=UTF8&tag=wiley01-20"},"image":{"src":"https://www.dummies.com/wp-content/uploads/matlab-for-dummies-2e-cover-9781119796886-203x255.jpg","width":203,"height":255},"title":"MATLAB For Dummies","testBankPinActivationLink":"","bookOutOfPrint":true,"authorsInfo":"<p><p><b>John Paul Mueller</b> is an author and technical editor with experience in application development, database management, machine learning, and deep learning. He has written hundreds of books and articles helping everyday people learn everything from networking to database management.</b> <p><b>John Mueller</b> has produced 114 books and more than 600 articles on topics ranging from functional programming techniques to working with Amazon Web Services &#40;AWS&#41;. <b>Luca Massaron,</b> a Google Developer Expert &#40;GDE&#41;,??interprets big data and transforms it into smart data through simple and effective data mining and machine learning techniques.</p>","authors":[{"authorId":9333,"name":"Jim Sizemore","slug":"jim-sizemore","description":" <p><b>John Paul Mueller</b> is an author and technical editor with experience in application development, database management, machine learning, and deep learning. He has written hundreds of books and articles helping everyday people learn everything from networking to database management.</b> ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9333"}},{"authorId":9109,"name":"John Paul Mueller","slug":"john-paul-mueller","description":" <p><b>John Mueller</b> has produced 114 books and more than 600 articles on topics ranging from functional programming techniques to working with Amazon Web Services &#40;AWS&#41;. <b>Luca Massaron,</b> a Google Developer Expert &#40;GDE&#41;,??interprets big data and transforms it into smart data through simple and effective data mining and machine learning techniques. ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9109"}}],"_links":{"self":"https://dummies-api.dummies.com/v2/books/"}},"collections":[],"articleAds":{"footerAd":"<div class=\"du-ad-region row\" id=\"article_page_adhesion_ad\"><div class=\"du-ad-unit col-md-12\" data-slot-id=\"article_page_adhesion_ad\" data-refreshed=\"false\" \r\n data-target = \"[{&quot;key&quot;:&quot;cat&quot;,&quot;values&quot;:[&quot;technology&quot;,&quot;programming-web-design&quot;,&quot;matlab&quot;]},{&quot;key&quot;:&quot;isbn&quot;,&quot;values&quot;:[&quot;9781119796886&quot;]}]\" id=\"du-slot-63221991128d0\"></div></div>","rightAd":"<div class=\"du-ad-region row\" id=\"article_page_right_ad\"><div class=\"du-ad-unit col-md-12\" data-slot-id=\"article_page_right_ad\" data-refreshed=\"false\" \r\n data-target = \"[{&quot;key&quot;:&quot;cat&quot;,&quot;values&quot;:[&quot;technology&quot;,&quot;programming-web-design&quot;,&quot;matlab&quot;]},{&quot;key&quot;:&quot;isbn&quot;,&quot;values&quot;:[&quot;9781119796886&quot;]}]\" id=\"du-slot-6322199113174\"></div></div>"},"articleType":{"articleType":"Step by Step","articleList":null,"content":[{"title":"Select an installation source (either Internet or local hard drive) and click Next.","thumb":{"src":"https://www.dummies.com/wp-content/uploads/454593.medium.jpg","width":200,"height":119},"image":{"src":"https://www.dummies.com/wp-content/uploads/454589.image0.jpg","width":535,"height":319},"content":"<p>You see the License Agreement dialog box.</p>\n"},{"title":"Read the licensing agreement, click Yes, and then click Next.","thumb":{"src":"https://www.dummies.com/wp-content/uploads/454594.medium.jpg","width":200,"height":119},"image":{"src":"https://www.dummies.com/wp-content/uploads/454590.image1.jpg","width":535,"height":319},"content":"<p>You see the File Installation Key dialog box. This is where you supply the licensing information. If you don&#8217;t have the key, make sure that you select the second option and follow the steps required to obtain the license.</p>\n"},{"title":"Supply the File Installation Key and click Next.","thumb":{"src":null,"width":0,"height":0},"image":{"src":null,"width":0,"height":0},"content":"<p>The installer asks you to select an installation method. In most cases, you obtain a better, faster, more error-free installation by selecting the Typical option. The steps that follow assume that you have chosen the Typical option.</p>\n"},{"title":"Click the Typical option and then click Next.","thumb":{"src":null,"width":0,"height":0},"image":{"src":null,"width":0,"height":0},"content":"<p>The installer asks you to choose an installation destination. This destination differs by platform. In most cases, choosing the default installation destination is the best idea. However, if you have an existing installation and want to preserve this installation precisely as it is, you need to choose a different installation location.</p>\n"},{"title":"Choose a destination location, if necessary, and click Next.","thumb":{"src":"https://www.dummies.com/wp-content/uploads/454595.medium.jpg","width":200,"height":119},"image":{"src":"https://www.dummies.com/wp-content/uploads/454591.image2.jpg","width":535,"height":319},"content":"<p>If you already have a copy of MATLAB installed and you choose the default installation location, the installer will ask whether you want to overwrite the existing copy. Click Yes To All (if you need to update your copy of MATLAB) or No (when you have the most current version) to proceed.</p>\n<p>When you click Yes To All, you agree to allow the installer to remove your old copy of MATLAB and install a new one. Be aware that you&#8217;ll likely lose any special configuration options you have set up, along with any features you had installed previously.</p>\n<p>The installer displays a Confirmation dialog box. Check the details carefully to ensure that the installation provides everything you need.</p>\n"},{"title":"Click Install.","thumb":{"src":null,"width":0,"height":0},"image":{"src":null,"width":0,"height":0},"content":"<p>The installation process begins. You can watch the progress by checking the progress bar. The installation can require several minutes depending on the installation options you choose, the complexity of the installation, and the speed of your system.</p>\n<p>When the installation process is complete, you see an Installation Complete dialog box.</p>\n"},{"title":"Select the Activate MATLAB option and then click Next.","thumb":{"src":null,"width":0,"height":0},"image":{"src":null,"width":0,"height":0},"content":"<p>MATLAB asks whether you want to activate your copy using the Internet or manually. Using the Internet is generally the faster and easier option, unless you have already downloaded a license file (<span class=\"code\">license.lic</span>) as part of getting the file installation key.</p>\n"},{"title":"Choose an activation option and click Next.","thumb":{"src":"https://www.dummies.com/wp-content/uploads/454596.medium.jpg","width":200,"height":119},"image":{"src":"https://www.dummies.com/wp-content/uploads/454592.image3.jpg","width":535,"height":319},"content":"<p>When you choose the Internet option, you must provide your email address and password to log on to the system for activation purposes. If you don&#8217;t have an account, you can also choose to create an account or provide the location of your locally stored <span class=\"code\">license.lic</span> file.</p>\n"},{"title":"Supply any required input and click Next.","thumb":{"src":null,"width":0,"height":0},"image":{"src":null,"width":0,"height":0},"content":"<p>If activation is successful, you see an Activation Complete dialog box. (When you don&#8217;t see this dialog box, retry obtaining the required activation or contact MathWorks support.)</p>\n"},{"title":"Click Finish.","thumb":{"src":null,"width":0,"height":0},"image":{"src":null,"width":0,"height":0},"content":"<p>The installation is complete.</p>\n"}],"videoInfo":{"videoId":null,"name":null,"accountId":null,"playerId":null,"thumbnailUrl":null,"description":null,"uploadDate":null}},"sponsorship":{"sponsorshipPage":false,"backgroundImage":{"src":null,"width":0,"height":0},"brandingLine":"","brandingLink":"","brandingLogo":{"src":null,"width":0,"height":0},"sponsorAd":"","sponsorEbookTitle":"","sponsorEbookLink":"","sponsorEbookImage":{"src":null,"width":0,"height":0}},"primaryLearningPath":"Advance","lifeExpectancy":null,"lifeExpectancySetFrom":null,"dummiesForKids":"no","sponsoredContent":"no","adInfo":"","adPairKey":[]},"status":"publish","visibility":"public","articleId":203423},{"headers":{"creationTime":"2016-03-27T09:30:38+00:00","modifiedTime":"2016-03-27T09:30:38+00:00","timestamp":"2022-09-14T18:12:33+00:00"},"data":{"breadcrumbs":[{"name":"Technology","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33512"},"slug":"technology","categoryId":33512},{"name":"Programming & Web Design","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33592"},"slug":"programming-web-design","categoryId":33592},{"name":"MATLAB","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33604"},"slug":"matlab","categoryId":33604}],"title":"How to Obtain the Symbolic Math Toolbox for MATLAB","strippedTitle":"how to obtain the symbolic math toolbox for matlab","slug":"how-to-obtain-the-symbolic-math-toolbox-for-matlab","canonicalUrl":"","seo":{"metaDescription":"You need to obtain either a trial version or a purchased version of the Symbolic Math Toolbox before you can do anything else with it in MATLAB. (When getting a","noIndex":0,"noFollow":0},"content":"<p>You need to obtain either a trial version or a purchased version of the <a href=\"http://www.mathworks.com/products/symbolic/\">Symbolic Math Toolbox</a> before you can do anything else with it in MATLAB. (When getting a trial version, you must discuss the download with someone from MATLAB before you can actually download the product.) Check out the product information and click one of the links in the Try or Buy section of the page.</p>\n<p>After you have received confirmation of your purchase, use the following steps to obtain the software:</p>","description":"<p>You need to obtain either a trial version or a purchased version of the <a href=\"http://www.mathworks.com/products/symbolic/\">Symbolic Math Toolbox</a> before you can do anything else with it in MATLAB. (When getting a trial version, you must discuss the download with someone from MATLAB before you can actually download the product.) Check out the product information and click one of the links in the Try or Buy section of the page.</p>\n<p>After you have received confirmation of your purchase, use the following steps to obtain the software:</p>","blurb":"","authors":[{"authorId":9333,"name":"Jim Sizemore","slug":"jim-sizemore","description":" <p><b>John Paul Mueller</b> is an author and technical editor with experience in application development, database management, machine learning, and deep learning. He has written hundreds of books and articles helping everyday people learn everything from networking to database management.</b> ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9333"}},{"authorId":9109,"name":"John Paul Mueller","slug":"john-paul-mueller","description":" <p><b>John Mueller</b> has produced 114 books and more than 600 articles on topics ranging from functional programming techniques to working with Amazon Web Services &#40;AWS&#41;. <b>Luca Massaron,</b> a Google Developer Expert &#40;GDE&#41;,??interprets big data and transforms it into smart data through simple and effective data mining and machine learning techniques. ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9109"}}],"primaryCategoryTaxonomy":{"categoryId":33604,"title":"MATLAB","slug":"matlab","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33604"}},"secondaryCategoryTaxonomy":{"categoryId":0,"title":null,"slug":null,"_links":null},"tertiaryCategoryTaxonomy":{"categoryId":0,"title":null,"slug":null,"_links":null},"trendingArticles":[{"articleId":192609,"title":"How to Pray the Rosary: A Comprehensive Guide","slug":"how-to-pray-the-rosary","categoryList":["body-mind-spirit","religion-spirituality","christianity","catholicism"],"_links":{"self":"/articles/192609"}},{"articleId":208741,"title":"Kabbalah For Dummies Cheat Sheet","slug":"kabbalah-for-dummies-cheat-sheet","categoryList":["body-mind-spirit","religion-spirituality","kabbalah"],"_links":{"self":"/articles/208741"}},{"articleId":230957,"title":"Nikon D3400 For Dummies Cheat Sheet","slug":"nikon-d3400-dummies-cheat-sheet","categoryList":["home-auto-hobbies","photography"],"_links":{"self":"/articles/230957"}},{"articleId":235851,"title":"Praying the Rosary and Meditating on the Mysteries","slug":"praying-rosary-meditating-mysteries","categoryList":["body-mind-spirit","religion-spirituality","christianity","catholicism"],"_links":{"self":"/articles/235851"}},{"articleId":284787,"title":"What Your Society Says About You","slug":"what-your-society-says-about-you","categoryList":["academics-the-arts","humanities"],"_links":{"self":"/articles/284787"}}],"inThisArticle":[],"relatedArticles":{"fromBook":[{"articleId":207617,"title":"MATLAB For Dummies Cheat Sheet","slug":"matlab-for-dummies-cheat-sheet","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/207617"}},{"articleId":203430,"title":"How to Temporarily Change the Current Folder in MATLAB","slug":"how-to-temporarily-change-the-current-folder-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203430"}},{"articleId":203429,"title":"How to Save a Formula or Command as a Script in MATLAB","slug":"how-to-save-a-formula-or-command-as-a-script-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203429"}},{"articleId":203425,"title":"How to Write Your First MATLAB Script","slug":"how-to-write-your-first-matlab-script","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203425"}},{"articleId":203424,"title":"How to Make a Flat Bar Chart in MATLAB","slug":"how-to-make-a-flat-bar-chart-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203424"}}],"fromCategory":[{"articleId":207617,"title":"MATLAB For Dummies Cheat Sheet","slug":"matlab-for-dummies-cheat-sheet","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/207617"}},{"articleId":203430,"title":"How to Temporarily Change the Current Folder in MATLAB","slug":"how-to-temporarily-change-the-current-folder-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203430"}},{"articleId":203429,"title":"How to Save a Formula or Command as a Script in MATLAB","slug":"how-to-save-a-formula-or-command-as-a-script-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203429"}},{"articleId":203425,"title":"How to Write Your First MATLAB Script","slug":"how-to-write-your-first-matlab-script","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203425"}},{"articleId":203424,"title":"How to Make a Flat Bar Chart in MATLAB","slug":"how-to-make-a-flat-bar-chart-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203424"}}]},"hasRelatedBookFromSearch":false,"relatedBook":{"bookId":281772,"slug":"matlab-for-dummies","isbn":"9781119796886","categoryList":["technology","programming-web-design","matlab"],"amazon":{"default":"https://www.amazon.com/gp/product/1119796881/ref=as_li_tl?ie=UTF8&tag=wiley01-20","ca":"https://www.amazon.ca/gp/product/1119796881/ref=as_li_tl?ie=UTF8&tag=wiley01-20","indigo_ca":"http://www.tkqlhce.com/click-9208661-13710633?url=https://www.chapters.indigo.ca/en-ca/books/product/1119796881-item.html&cjsku=978111945484","gb":"https://www.amazon.co.uk/gp/product/1119796881/ref=as_li_tl?ie=UTF8&tag=wiley01-20","de":"https://www.amazon.de/gp/product/1119796881/ref=as_li_tl?ie=UTF8&tag=wiley01-20"},"image":{"src":"https://www.dummies.com/wp-content/uploads/matlab-for-dummies-2e-cover-9781119796886-203x255.jpg","width":203,"height":255},"title":"MATLAB For Dummies","testBankPinActivationLink":"","bookOutOfPrint":true,"authorsInfo":"<p><p><b>John Paul Mueller</b> is an author and technical editor with experience in application development, database management, machine learning, and deep learning. He has written hundreds of books and articles helping everyday people learn everything from networking to database management.</b> <p><b>John Mueller</b> has produced 114 books and more than 600 articles on topics ranging from functional programming techniques to working with Amazon Web Services &#40;AWS&#41;. <b>Luca Massaron,</b> a Google Developer Expert &#40;GDE&#41;,??interprets big data and transforms it into smart data through simple and effective data mining and machine learning techniques.</p>","authors":[{"authorId":9333,"name":"Jim Sizemore","slug":"jim-sizemore","description":" <p><b>John Paul Mueller</b> is an author and technical editor with experience in application development, database management, machine learning, and deep learning. He has written hundreds of books and articles helping everyday people learn everything from networking to database management.</b> ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9333"}},{"authorId":9109,"name":"John Paul Mueller","slug":"john-paul-mueller","description":" <p><b>John Mueller</b> has produced 114 books and more than 600 articles on topics ranging from functional programming techniques to working with Amazon Web Services &#40;AWS&#41;. <b>Luca Massaron,</b> a Google Developer Expert &#40;GDE&#41;,??interprets big data and transforms it into smart data through simple and effective data mining and machine learning techniques. ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9109"}}],"_links":{"self":"https://dummies-api.dummies.com/v2/books/"}},"collections":[],"articleAds":{"footerAd":"<div class=\"du-ad-region row\" id=\"article_page_adhesion_ad\"><div class=\"du-ad-unit col-md-12\" data-slot-id=\"article_page_adhesion_ad\" data-refreshed=\"false\" \r\n data-target = \"[{&quot;key&quot;:&quot;cat&quot;,&quot;values&quot;:[&quot;technology&quot;,&quot;programming-web-design&quot;,&quot;matlab&quot;]},{&quot;key&quot;:&quot;isbn&quot;,&quot;values&quot;:[&quot;9781119796886&quot;]}]\" id=\"du-slot-632219910876e\"></div></div>","rightAd":"<div class=\"du-ad-region row\" id=\"article_page_right_ad\"><div class=\"du-ad-unit col-md-12\" data-slot-id=\"article_page_right_ad\" data-refreshed=\"false\" \r\n data-target = \"[{&quot;key&quot;:&quot;cat&quot;,&quot;values&quot;:[&quot;technology&quot;,&quot;programming-web-design&quot;,&quot;matlab&quot;]},{&quot;key&quot;:&quot;isbn&quot;,&quot;values&quot;:[&quot;9781119796886&quot;]}]\" id=\"du-slot-6322199109030\"></div></div>"},"articleType":{"articleType":"Step by Step","articleList":null,"content":[{"title":"Navigate to <a href=\"http://www.mathworks.com/downloads/web_downloads/\">MathWorks Download page</a> using your browser.","thumb":{"src":"https://www.dummies.com/wp-content/uploads/454584.medium.jpg","width":200,"height":122},"image":{"src":"https://www.dummies.com/wp-content/uploads/454581.image0.jpg","width":535,"height":329},"content":"<p>You see the MathWorks Downloads page.</p>\n"},{"title":"Click the Download link found on the Licensed Products tab.","thumb":{"src":"https://www.dummies.com/wp-content/uploads/454585.medium.jpg","width":200,"height":122},"image":{"src":"https://www.dummies.com/wp-content/uploads/454582.image1.jpg","width":535,"height":329},"content":"<p>You see the login page. (If you&#8217;re already logged in, you don&#8217;t see the login page and can go directly to Step 4.)</p>\n"},{"title":"Type your email address and password in the appropriate fields; then click Log in.","thumb":{"src":"https://www.dummies.com/wp-content/uploads/454586.medium.jpg","width":200,"height":125},"image":{"src":"https://www.dummies.com/wp-content/uploads/454583.image2.jpg","width":535,"height":335},"content":"<p>You see a number of product releases.</p>\n"},{"title":"Click the link for the MATLAB release that you have installed on your system.","thumb":{"src":null,"width":0,"height":0},"image":{"src":null,"width":0,"height":0},"content":"<p>When you select the product installed on your system, you should see a link for the Symbolic Math Toolbox.</p>\n"},{"title":"Click the box next to the Symbolic Math Toolbox to select it.","thumb":{"src":null,"width":0,"height":0},"image":{"src":null,"width":0,"height":0},"content":"<p>You may need to download updates to MATLAB itself in order to install the Symbolic Math Toolbox.</p>\n"},{"title":"Click Download.","thumb":{"src":null,"width":0,"height":0},"image":{"src":null,"width":0,"height":0},"content":"<p>Depending on your platform, you should see a dialog box for the download agent. The form this dialog box takes varies by platform. If you&#8217;re able to use the download agent, the download process will start and you can skip Steps 7 and 8. Follow any directions that the download agent provides to start the download process.</p>\n"},{"title":"Click the Manually Download Your Products link at the bottom of the page.","thumb":{"src":null,"width":0,"height":0},"image":{"src":null,"width":0,"height":0},"content":"<p>You see a download dialog box.</p>\n"},{"title":"Use the standard procedure for downloading software for your browser and platform.","thumb":{"src":null,"width":0,"height":0},"image":{"src":null,"width":0,"height":0},"content":"<p>The download is a little on the large size, so receiving it can take a while. After the download completes, you end up with a copy of the required files on your system.</p>\n"}],"videoInfo":{"videoId":null,"name":null,"accountId":null,"playerId":null,"thumbnailUrl":null,"description":null,"uploadDate":null}},"sponsorship":{"sponsorshipPage":false,"backgroundImage":{"src":null,"width":0,"height":0},"brandingLine":"","brandingLink":"","brandingLogo":{"src":null,"width":0,"height":0},"sponsorAd":"","sponsorEbookTitle":"","sponsorEbookLink":"","sponsorEbookImage":{"src":null,"width":0,"height":0}},"primaryLearningPath":"Advance","lifeExpectancy":null,"lifeExpectancySetFrom":null,"dummiesForKids":"no","sponsoredContent":"no","adInfo":"","adPairKey":[]},"status":"publish","visibility":"public","articleId":203421},{"headers":{"creationTime":"2016-03-27T09:30:33+00:00","modifiedTime":"2016-03-27T09:30:33+00:00","timestamp":"2022-09-14T18:12:32+00:00"},"data":{"breadcrumbs":[{"name":"Technology","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33512"},"slug":"technology","categoryId":33512},{"name":"Programming & Web Design","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33592"},"slug":"programming-web-design","categoryId":33592},{"name":"MATLAB","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33604"},"slug":"matlab","categoryId":33604}],"title":"How to Modify the Plot Box Aspect Ratio to Change the Appearance of Your MATLAB Plot","strippedTitle":"how to modify the plot box aspect ratio to change the appearance of your matlab plot","slug":"how-to-modify-the-plot-box-aspect-ratio-to-change-the-appearance-of-your-matlab-plot","canonicalUrl":"","seo":{"metaDescription":"MATLAB allows you to modify the plot box aspect ratio. Instead of modifying the data, the plot box aspect ratio modifies the plot box — the element that holds t","noIndex":0,"noFollow":0},"content":"<p>MATLAB allows you to modify the plot box aspect ratio. Instead of modifying the data, the plot box aspect ratio modifies the plot box — the element that holds the plot in its entirety — as a whole. The appearance of the data still changes, but in a different way than before. The following steps get you started with this example:</p>","description":"<p>MATLAB allows you to modify the plot box aspect ratio. Instead of modifying the data, the plot box aspect ratio modifies the plot box — the element that holds the plot in its entirety — as a whole. The appearance of the data still changes, but in a different way than before. The following steps get you started with this example:</p>","blurb":"","authors":[{"authorId":9333,"name":"Jim Sizemore","slug":"jim-sizemore","description":" <p><b>John Paul Mueller</b> is an author and technical editor with experience in application development, database management, machine learning, and deep learning. He has written hundreds of books and articles helping everyday people learn everything from networking to database management.</b> ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9333"}},{"authorId":9109,"name":"John Paul Mueller","slug":"john-paul-mueller","description":" <p><b>John Mueller</b> has produced 114 books and more than 600 articles on topics ranging from functional programming techniques to working with Amazon Web Services &#40;AWS&#41;. <b>Luca Massaron,</b> a Google Developer Expert &#40;GDE&#41;,??interprets big data and transforms it into smart data through simple and effective data mining and machine learning techniques. ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9109"}}],"primaryCategoryTaxonomy":{"categoryId":33604,"title":"MATLAB","slug":"matlab","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33604"}},"secondaryCategoryTaxonomy":{"categoryId":0,"title":null,"slug":null,"_links":null},"tertiaryCategoryTaxonomy":{"categoryId":0,"title":null,"slug":null,"_links":null},"trendingArticles":[{"articleId":192609,"title":"How to Pray the Rosary: A Comprehensive Guide","slug":"how-to-pray-the-rosary","categoryList":["body-mind-spirit","religion-spirituality","christianity","catholicism"],"_links":{"self":"/articles/192609"}},{"articleId":208741,"title":"Kabbalah For Dummies Cheat Sheet","slug":"kabbalah-for-dummies-cheat-sheet","categoryList":["body-mind-spirit","religion-spirituality","kabbalah"],"_links":{"self":"/articles/208741"}},{"articleId":230957,"title":"Nikon D3400 For Dummies Cheat Sheet","slug":"nikon-d3400-dummies-cheat-sheet","categoryList":["home-auto-hobbies","photography"],"_links":{"self":"/articles/230957"}},{"articleId":235851,"title":"Praying the Rosary and Meditating on the Mysteries","slug":"praying-rosary-meditating-mysteries","categoryList":["body-mind-spirit","religion-spirituality","christianity","catholicism"],"_links":{"self":"/articles/235851"}},{"articleId":284787,"title":"What Your Society Says About You","slug":"what-your-society-says-about-you","categoryList":["academics-the-arts","humanities"],"_links":{"self":"/articles/284787"}}],"inThisArticle":[],"relatedArticles":{"fromBook":[{"articleId":207617,"title":"MATLAB For Dummies Cheat Sheet","slug":"matlab-for-dummies-cheat-sheet","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/207617"}},{"articleId":203430,"title":"How to Temporarily Change the Current Folder in MATLAB","slug":"how-to-temporarily-change-the-current-folder-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203430"}},{"articleId":203429,"title":"How to Save a Formula or Command as a Script in MATLAB","slug":"how-to-save-a-formula-or-command-as-a-script-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203429"}},{"articleId":203425,"title":"How to Write Your First MATLAB Script","slug":"how-to-write-your-first-matlab-script","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203425"}},{"articleId":203424,"title":"How to Make a Flat Bar Chart in MATLAB","slug":"how-to-make-a-flat-bar-chart-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203424"}}],"fromCategory":[{"articleId":207617,"title":"MATLAB For Dummies Cheat Sheet","slug":"matlab-for-dummies-cheat-sheet","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/207617"}},{"articleId":203430,"title":"How to Temporarily Change the Current Folder in MATLAB","slug":"how-to-temporarily-change-the-current-folder-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203430"}},{"articleId":203429,"title":"How to Save a Formula or Command as a Script in MATLAB","slug":"how-to-save-a-formula-or-command-as-a-script-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203429"}},{"articleId":203425,"title":"How to Write Your First MATLAB Script","slug":"how-to-write-your-first-matlab-script","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203425"}},{"articleId":203424,"title":"How to Make a Flat Bar Chart in MATLAB","slug":"how-to-make-a-flat-bar-chart-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203424"}}]},"hasRelatedBookFromSearch":false,"relatedBook":{"bookId":281772,"slug":"matlab-for-dummies","isbn":"9781119796886","categoryList":["technology","programming-web-design","matlab"],"amazon":{"default":"https://www.amazon.com/gp/product/1119796881/ref=as_li_tl?ie=UTF8&tag=wiley01-20","ca":"https://www.amazon.ca/gp/product/1119796881/ref=as_li_tl?ie=UTF8&tag=wiley01-20","indigo_ca":"http://www.tkqlhce.com/click-9208661-13710633?url=https://www.chapters.indigo.ca/en-ca/books/product/1119796881-item.html&cjsku=978111945484","gb":"https://www.amazon.co.uk/gp/product/1119796881/ref=as_li_tl?ie=UTF8&tag=wiley01-20","de":"https://www.amazon.de/gp/product/1119796881/ref=as_li_tl?ie=UTF8&tag=wiley01-20"},"image":{"src":"https://www.dummies.com/wp-content/uploads/matlab-for-dummies-2e-cover-9781119796886-203x255.jpg","width":203,"height":255},"title":"MATLAB For Dummies","testBankPinActivationLink":"","bookOutOfPrint":true,"authorsInfo":"<p><p><b>John Paul Mueller</b> is an author and technical editor with experience in application development, database management, machine learning, and deep learning. He has written hundreds of books and articles helping everyday people learn everything from networking to database management.</b> <p><b>John Mueller</b> has produced 114 books and more than 600 articles on topics ranging from functional programming techniques to working with Amazon Web Services &#40;AWS&#41;. <b>Luca Massaron,</b> a Google Developer Expert &#40;GDE&#41;,??interprets big data and transforms it into smart data through simple and effective data mining and machine learning techniques.</p>","authors":[{"authorId":9333,"name":"Jim Sizemore","slug":"jim-sizemore","description":" <p><b>John Paul Mueller</b> is an author and technical editor with experience in application development, database management, machine learning, and deep learning. He has written hundreds of books and articles helping everyday people learn everything from networking to database management.</b> ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9333"}},{"authorId":9109,"name":"John Paul Mueller","slug":"john-paul-mueller","description":" <p><b>John Mueller</b> has produced 114 books and more than 600 articles on topics ranging from functional programming techniques to working with Amazon Web Services &#40;AWS&#41;. <b>Luca Massaron,</b> a Google Developer Expert &#40;GDE&#41;,??interprets big data and transforms it into smart data through simple and effective data mining and machine learning techniques. ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9109"}}],"_links":{"self":"https://dummies-api.dummies.com/v2/books/"}},"collections":[],"articleAds":{"footerAd":"<div class=\"du-ad-region row\" id=\"article_page_adhesion_ad\"><div class=\"du-ad-unit col-md-12\" data-slot-id=\"article_page_adhesion_ad\" data-refreshed=\"false\" \r\n data-target = \"[{&quot;key&quot;:&quot;cat&quot;,&quot;values&quot;:[&quot;technology&quot;,&quot;programming-web-design&quot;,&quot;matlab&quot;]},{&quot;key&quot;:&quot;isbn&quot;,&quot;values&quot;:[&quot;9781119796886&quot;]}]\" id=\"du-slot-63221990f30de\"></div></div>","rightAd":"<div class=\"du-ad-region row\" id=\"article_page_right_ad\"><div class=\"du-ad-unit col-md-12\" data-slot-id=\"article_page_right_ad\" data-refreshed=\"false\" \r\n data-target = \"[{&quot;key&quot;:&quot;cat&quot;,&quot;values&quot;:[&quot;technology&quot;,&quot;programming-web-design&quot;,&quot;matlab&quot;]},{&quot;key&quot;:&quot;isbn&quot;,&quot;values&quot;:[&quot;9781119796886&quot;]}]\" id=\"du-slot-63221990f3979\"></div></div>"},"articleType":{"articleType":"Step by Step","articleList":null,"content":[{"title":"Type YSource = [1, 3, 5; 3, 7, 9; 5, 7, 11]; and press Enter.","thumb":{"src":null,"width":0,"height":0},"image":{"src":null,"width":0,"height":0},"content":"<p>MATLAB creates a data source for you.</p>\n"},{"title":"Type Bar1 = bar3(YSource); and press Enter.","thumb":{"src":null,"width":0,"height":0},"image":{"src":null,"width":0,"height":0},"content":"<p>You see a 3D bar chart appear.</p>\n"},{"title":"Type rotate(Bar1, [0, 0, 1], 270); and press Enter.","thumb":{"src":"https://www.dummies.com/wp-content/uploads/454799.medium.jpg","width":200,"height":176},"image":{"src":"https://www.dummies.com/wp-content/uploads/454796.image0.jpg","width":452,"height":400},"content":"<p>The bar chart rotates so that you can see the individual bars easier.</p>\n"},{"title":"Type pbaspect() and press Enter.","thumb":{"src":null,"width":0,"height":0},"image":{"src":null,"width":0,"height":0},"content":"<p>As before, you get three values: x-, y-, and z-axis. However, the numbers differ from before because now you&#8217;re working with the plot box aspect ratio and not the data aspect ratio. Here are typical output values at this point:</p>\n<pre class=\"code\">ans =\n 2.8000 4.0000 2.4721</pre>\n"},{"title":"Type pbaspect([1.5, 1.5, 7]); and press Enter.","thumb":{"src":"https://www.dummies.com/wp-content/uploads/454800.medium.jpg","width":200,"height":176},"image":{"src":"https://www.dummies.com/wp-content/uploads/454797.image1.jpg","width":452,"height":400},"content":"<p>The differences between the data points seem immense.</p>\n<p>Notice how changing the plot box aspect ratio affects both the plot box and the data so that the plot box no longer is able to change settings, such as the spacing between bars. What this means in particular is that you don&#8217;t have to worry about bars ending up outside the plot area and not being displayed. The bars and the plot box are now locked together.</p>\n"},{"title":"Type pbaspect([4, 5, 1]); and press Enter.","thumb":{"src":"https://www.dummies.com/wp-content/uploads/454801.medium.jpg","width":200,"height":176},"image":{"src":"https://www.dummies.com/wp-content/uploads/454798.image2.jpg","width":452,"height":400},"content":"<p>The data points now seem closer together, even though nothing has changed in the data.</p>\n"},{"title":"Type pbaspect(‘auto’); and press Enter.","thumb":{"src":null,"width":0,"height":0},"image":{"src":null,"width":0,"height":0},"content":"<p>The plot aspect returns to its original state.</p>\n"}],"videoInfo":{"videoId":null,"name":null,"accountId":null,"playerId":null,"thumbnailUrl":null,"description":null,"uploadDate":null}},"sponsorship":{"sponsorshipPage":false,"backgroundImage":{"src":null,"width":0,"height":0},"brandingLine":"","brandingLink":"","brandingLogo":{"src":null,"width":0,"height":0},"sponsorAd":"","sponsorEbookTitle":"","sponsorEbookLink":"","sponsorEbookImage":{"src":null,"width":0,"height":0}},"primaryLearningPath":"Advance","lifeExpectancy":null,"lifeExpectancySetFrom":null,"dummiesForKids":"no","sponsoredContent":"no","adInfo":"","adPairKey":[]},"status":"publish","visibility":"public","articleId":203420},{"headers":{"creationTime":"2016-03-27T09:30:27+00:00","modifiedTime":"2016-03-27T09:30:27+00:00","timestamp":"2022-09-14T18:12:32+00:00"},"data":{"breadcrumbs":[{"name":"Technology","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33512"},"slug":"technology","categoryId":33512},{"name":"Programming & Web Design","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33592"},"slug":"programming-web-design","categoryId":33592},{"name":"MATLAB","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33604"},"slug":"matlab","categoryId":33604}],"title":"How to Use a Color Bar with Your MATLAB Plot","strippedTitle":"how to use a color bar with your matlab plot","slug":"how-to-use-a-color-bar-with-your-matlab-plot","canonicalUrl":"","seo":{"metaDescription":"Using a color bar with your MATLAB plot can help people see data values based on color rather than pure numeric value. The color bar itself can assign human-und","noIndex":0,"noFollow":0},"content":"<p>Using a color bar with your MATLAB plot can help people see data values based on color rather than pure numeric value. The color bar itself can assign human-understandable values to the numeric data so that the data means something to those viewing it. The best way to work with color bars is to see them in action.</p>\n<p>The following steps help you create a color bar by using the <span class=\"code\">colorbar()</span> function and use it to define values in a bar chart:</p>","description":"<p>Using a color bar with your MATLAB plot can help people see data values based on color rather than pure numeric value. The color bar itself can assign human-understandable values to the numeric data so that the data means something to those viewing it. The best way to work with color bars is to see them in action.</p>\n<p>The following steps help you create a color bar by using the <span class=\"code\">colorbar()</span> function and use it to define values in a bar chart:</p>","blurb":"","authors":[{"authorId":9333,"name":"Jim Sizemore","slug":"jim-sizemore","description":" <p><b>John Paul Mueller</b> is an author and technical editor with experience in application development, database management, machine learning, and deep learning. He has written hundreds of books and articles helping everyday people learn everything from networking to database management.</b> ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9333"}},{"authorId":9109,"name":"John Paul Mueller","slug":"john-paul-mueller","description":" <p><b>John Mueller</b> has produced 114 books and more than 600 articles on topics ranging from functional programming techniques to working with Amazon Web Services &#40;AWS&#41;. <b>Luca Massaron,</b> a Google Developer Expert &#40;GDE&#41;,??interprets big data and transforms it into smart data through simple and effective data mining and machine learning techniques. ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9109"}}],"primaryCategoryTaxonomy":{"categoryId":33604,"title":"MATLAB","slug":"matlab","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33604"}},"secondaryCategoryTaxonomy":{"categoryId":0,"title":null,"slug":null,"_links":null},"tertiaryCategoryTaxonomy":{"categoryId":0,"title":null,"slug":null,"_links":null},"trendingArticles":[{"articleId":192609,"title":"How to Pray the Rosary: A Comprehensive Guide","slug":"how-to-pray-the-rosary","categoryList":["body-mind-spirit","religion-spirituality","christianity","catholicism"],"_links":{"self":"/articles/192609"}},{"articleId":208741,"title":"Kabbalah For Dummies Cheat Sheet","slug":"kabbalah-for-dummies-cheat-sheet","categoryList":["body-mind-spirit","religion-spirituality","kabbalah"],"_links":{"self":"/articles/208741"}},{"articleId":230957,"title":"Nikon D3400 For Dummies Cheat Sheet","slug":"nikon-d3400-dummies-cheat-sheet","categoryList":["home-auto-hobbies","photography"],"_links":{"self":"/articles/230957"}},{"articleId":235851,"title":"Praying the Rosary and Meditating on the Mysteries","slug":"praying-rosary-meditating-mysteries","categoryList":["body-mind-spirit","religion-spirituality","christianity","catholicism"],"_links":{"self":"/articles/235851"}},{"articleId":284787,"title":"What Your Society Says About You","slug":"what-your-society-says-about-you","categoryList":["academics-the-arts","humanities"],"_links":{"self":"/articles/284787"}}],"inThisArticle":[],"relatedArticles":{"fromBook":[{"articleId":207617,"title":"MATLAB For Dummies Cheat Sheet","slug":"matlab-for-dummies-cheat-sheet","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/207617"}},{"articleId":203430,"title":"How to Temporarily Change the Current Folder in MATLAB","slug":"how-to-temporarily-change-the-current-folder-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203430"}},{"articleId":203429,"title":"How to Save a Formula or Command as a Script in MATLAB","slug":"how-to-save-a-formula-or-command-as-a-script-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203429"}},{"articleId":203425,"title":"How to Write Your First MATLAB Script","slug":"how-to-write-your-first-matlab-script","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203425"}},{"articleId":203424,"title":"How to Make a Flat Bar Chart in MATLAB","slug":"how-to-make-a-flat-bar-chart-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203424"}}],"fromCategory":[{"articleId":207617,"title":"MATLAB For Dummies Cheat Sheet","slug":"matlab-for-dummies-cheat-sheet","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/207617"}},{"articleId":203430,"title":"How to Temporarily Change the Current Folder in MATLAB","slug":"how-to-temporarily-change-the-current-folder-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203430"}},{"articleId":203429,"title":"How to Save a Formula or Command as a Script in MATLAB","slug":"how-to-save-a-formula-or-command-as-a-script-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203429"}},{"articleId":203425,"title":"How to Write Your First MATLAB Script","slug":"how-to-write-your-first-matlab-script","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203425"}},{"articleId":203424,"title":"How to Make a Flat Bar Chart in MATLAB","slug":"how-to-make-a-flat-bar-chart-in-matlab","categoryList":["technology","programming-web-design","matlab"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203424"}}]},"hasRelatedBookFromSearch":false,"relatedBook":{"bookId":281772,"slug":"matlab-for-dummies","isbn":"9781119796886","categoryList":["technology","programming-web-design","matlab"],"amazon":{"default":"https://www.amazon.com/gp/product/1119796881/ref=as_li_tl?ie=UTF8&tag=wiley01-20","ca":"https://www.amazon.ca/gp/product/1119796881/ref=as_li_tl?ie=UTF8&tag=wiley01-20","indigo_ca":"http://www.tkqlhce.com/click-9208661-13710633?url=https://www.chapters.indigo.ca/en-ca/books/product/1119796881-item.html&cjsku=978111945484","gb":"https://www.amazon.co.uk/gp/product/1119796881/ref=as_li_tl?ie=UTF8&tag=wiley01-20","de":"https://www.amazon.de/gp/product/1119796881/ref=as_li_tl?ie=UTF8&tag=wiley01-20"},"image":{"src":"https://www.dummies.com/wp-content/uploads/matlab-for-dummies-2e-cover-9781119796886-203x255.jpg","width":203,"height":255},"title":"MATLAB For Dummies","testBankPinActivationLink":"","bookOutOfPrint":true,"authorsInfo":"<p><p><b>John Paul Mueller</b> is an author and technical editor with experience in application development, database management, machine learning, and deep learning. He has written hundreds of books and articles helping everyday people learn everything from networking to database management.</b> <p><b>John Mueller</b> has produced 114 books and more than 600 articles on topics ranging from functional programming techniques to working with Amazon Web Services &#40;AWS&#41;. <b>Luca Massaron,</b> a Google Developer Expert &#40;GDE&#41;,??interprets big data and transforms it into smart data through simple and effective data mining and machine learning techniques.</p>","authors":[{"authorId":9333,"name":"Jim Sizemore","slug":"jim-sizemore","description":" <p><b>John Paul Mueller</b> is an author and technical editor with experience in application development, database management, machine learning, and deep learning. He has written hundreds of books and articles helping everyday people learn everything from networking to database management.</b> ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9333"}},{"authorId":9109,"name":"John Paul Mueller","slug":"john-paul-mueller","description":" <p><b>John Mueller</b> has produced 114 books and more than 600 articles on topics ranging from functional programming techniques to working with Amazon Web Services &#40;AWS&#41;. <b>Luca Massaron,</b> a Google Developer Expert &#40;GDE&#41;,??interprets big data and transforms it into smart data through simple and effective data mining and machine learning techniques. ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9109"}}],"_links":{"self":"https://dummies-api.dummies.com/v2/books/"}},"collections":[],"articleAds":{"footerAd":"<div class=\"du-ad-region row\" id=\"article_page_adhesion_ad\"><div class=\"du-ad-unit col-md-12\" data-slot-id=\"article_page_adhesion_ad\" data-refreshed=\"false\" \r\n data-target = \"[{&quot;key&quot;:&quot;cat&quot;,&quot;values&quot;:[&quot;technology&quot;,&quot;programming-web-design&quot;,&quot;matlab&quot;]},{&quot;key&quot;:&quot;isbn&quot;,&quot;values&quot;:[&quot;9781119796886&quot;]}]\" id=\"du-slot-63221990e8749\"></div></div>","rightAd":"<div class=\"du-ad-region row\" id=\"article_page_right_ad\"><div class=\"du-ad-unit col-md-12\" data-slot-id=\"article_page_right_ad\" data-refreshed=\"false\" \r\n data-target = \"[{&quot;key&quot;:&quot;cat&quot;,&quot;values&quot;:[&quot;technology&quot;,&quot;programming-web-design&quot;,&quot;matlab&quot;]},{&quot;key&quot;:&quot;isbn&quot;,&quot;values&quot;:[&quot;9781119796886&quot;]}]\" id=\"du-slot-63221990e8fdc\"></div></div>"},"articleType":{"articleType":"Step by Step","articleList":null,"content":[{"title":"Type YSource = [4, 2, 5, 6; 1, 2, 4, 3]; and press Enter.","thumb":{"src":null,"width":0,"height":0},"image":{"src":null,"width":0,"height":0},"content":"<p>MATLAB creates a new data source for the plot.</p>\n"},{"title":"Type Bar1 = bar3(YSource); and press Enter.","thumb":{"src":"https://www.dummies.com/wp-content/uploads/454782.medium.jpg","width":200,"height":176},"image":{"src":"https://www.dummies.com/wp-content/uploads/454778.image0.jpg","width":452,"height":400},"content":"<p>You see a new bar chart. Even though the data is in graphic format, it&#8217;s still pretty boring. To make the bar chart easier to work with, the next step changes the y-axis labels.</p>\n"},{"title":"Type CB1 = colorbar(‘EastOutside’); and press Enter.","thumb":{"src":"https://www.dummies.com/wp-content/uploads/454783.medium.jpg","width":200,"height":176},"image":{"src":"https://www.dummies.com/wp-content/uploads/454779.image1.jpg","width":452,"height":400},"content":"<p>You see a color bar appear on the right side of the plot. You can choose other places for the color bar, including inside the plot. Don&#8217;t worry about the color bar ticks not matching those of the bar chart for now.</p>\n"},{"title":"Type the following code into the Command window, pressing Enter after each line.","thumb":{"src":"https://www.dummies.com/wp-content/uploads/454784.medium.jpg","width":200,"height":176},"image":{"src":"https://www.dummies.com/wp-content/uploads/454780.image2.jpg","width":452,"height":400},"content":"<pre class=\"code\">for Element = 1:length(Bar1)\n ZData = get(Bar1(Element),&#8217;ZData&#8217;);\n set(Bar1(Element), &#8216;CData&#8217;, ZData,...\n &#8216;FaceColor&#8217;, &#8216;interp&#8217;)\nend</pre>\n<p>A number of changes take place. The bars are now colored according to their value. However, the color bar just contains numbers, so it doesn&#8217;t do anything more than the y-axis labels do to tell what the colors mean.</p>\n"},{"title":"Type set(CB1, ‘YTickLabel’, {‘‘, ‘Awful’, ‘OK’, ‘Better’, ‘Average’, ‘Great!’, ‘BEST’}); and press Enter.","thumb":{"src":"https://www.dummies.com/wp-content/uploads/454785.medium.jpg","width":200,"height":176},"image":{"src":"https://www.dummies.com/wp-content/uploads/454781.image3.jpg","width":452,"height":400},"content":"<p>The chart now has meanings assigned to each color level.</p>\n<p>The color scheme that MATLAB uses by default isn&#8217;t the only color scheme available. The <span class=\"code\">colormap()</span> function lets you change the colors. For example, if you type <b>colormap(&#8216;cool&#8217;)</b> and press Enter, the colors change appropriately. You can also create custom color maps using a variety of techniques. To get more information, see the <a href=\"http://www.mathworks.com/help/matlab/ref/colormap.html\">colormap() documentation at MathWorks</a>.</p>\n"}],"videoInfo":{"videoId":null,"name":null,"accountId":null,"playerId":null,"thumbnailUrl":null,"description":null,"uploadDate":null}},"sponsorship":{"sponsorshipPage":false,"backgroundImage":{"src":null,"width":0,"height":0},"brandingLine":"","brandingLink":"","brandingLogo":{"src":null,"width":0,"height":0},"sponsorAd":"","sponsorEbookTitle":"","sponsorEbookLink":"","sponsorEbookImage":{"src":null,"width":0,"height":0}},"primaryLearningPath":"Advance","lifeExpectancy":null,"lifeExpectancySetFrom":null,"dummiesForKids":"no","sponsoredContent":"no","adInfo":"","adPairKey":[]},"status":"publish","visibility":"public","articleId":203419}],"_links":{"self":{"self":"https://dummies-api.dummies.com/v2/categories/33604/categoryArticles?sortField=time&sortOrder=1&size=10&offset=0"},"next":{"self":"https://dummies-api.dummies.com/v2/categories/33604/categoryArticles?sortField=time&sortOrder=1&size=10&offset=10"},"last":{"self":"https://dummies-api.dummies.com/v2/categories/33604/categoryArticles?sortField=time&sortOrder=1&size=10&offset=73"}}},"objectTitle":"","status":"success","pageType":"article-category","objectId":"33604","page":1,"sortField":"time","sortOrder":1,"categoriesIds":[],"articleTypes":[],"filterData":{"categoriesFilter":[{"itemId":0,"itemName":"All Categories","count":83}],"articleTypeFilter":[{"articleType":"All Types","count":83},{"articleType":"Articles","count":72},{"articleType":"Cheat Sheet","count":1},{"articleType":"Step by Step","count":10}]},"filterDataLoadedStatus":"success","pageSize":10},"adsState":{"pageScripts":{"headers":{"timestamp":"2025-04-17T15:50:01+00:00"},"adsId":0,"data":{"scripts":[{"pages":["all"],"location":"header","script":"<!--Optimizely Script-->\r\n<script src=\"https://cdn.optimizely.com/js/10563184655.js\"></script>","enabled":false},{"pages":["all"],"location":"header","script":"<!-- comScore Tag -->\r\n<script>var _comscore = _comscore || [];_comscore.push({ c1: \"2\", c2: \"15097263\" });(function() {var s = document.createElement(\"script\"), el = document.getElementsByTagName(\"script\")[0]; s.async = true;s.src = (document.location.protocol == \"https:\" ? \"https://sb\" : \"http://b\") + \".scorecardresearch.com/beacon.js\";el.parentNode.insertBefore(s, el);})();</script><noscript><img src=\"https://sb.scorecardresearch.com/p?c1=2&c2=15097263&cv=2.0&cj=1\" /></noscript>\r\n<!-- / comScore Tag -->","enabled":true},{"pages":["all"],"location":"footer","script":"<!--BEGIN QUALTRICS WEBSITE FEEDBACK SNIPPET-->\r\n<script type='text/javascript'>\r\n(function(){var g=function(e,h,f,g){\r\nthis.get=function(a){for(var a=a+\"=\",c=document.cookie.split(\";\"),b=0,e=c.length;b<e;b++){for(var d=c[b];\" \"==d.charAt(0);)d=d.substring(1,d.length);if(0==d.indexOf(a))return d.substring(a.length,d.length)}return null};\r\nthis.set=function(a,c){var b=\"\",b=new Date;b.setTime(b.getTime()+6048E5);b=\"; expires=\"+b.toGMTString();document.cookie=a+\"=\"+c+b+\"; path=/; \"};\r\nthis.check=function(){var a=this.get(f);if(a)a=a.split(\":\");else if(100!=e)\"v\"==h&&(e=Math.random()>=e/100?0:100),a=[h,e,0],this.set(f,a.join(\":\"));else return!0;var c=a[1];if(100==c)return!0;switch(a[0]){case \"v\":return!1;case \"r\":return c=a[2]%Math.floor(100/c),a[2]++,this.set(f,a.join(\":\")),!c}return!0};\r\nthis.go=function(){if(this.check()){var a=document.createElement(\"script\");a.type=\"text/javascript\";a.src=g;document.body&&document.body.appendChild(a)}};\r\nthis.start=function(){var t=this;\"complete\"!==document.readyState?window.addEventListener?window.addEventListener(\"load\",function(){t.go()},!1):window.attachEvent&&window.attachEvent(\"onload\",function(){t.go()}):t.go()};};\r\ntry{(new g(100,\"r\",\"QSI_S_ZN_5o5yqpvMVjgDOuN\",\"https://zn5o5yqpvmvjgdoun-wiley.siteintercept.qualtrics.com/SIE/?Q_ZID=ZN_5o5yqpvMVjgDOuN\")).start()}catch(i){}})();\r\n</script><div id='ZN_5o5yqpvMVjgDOuN'><!--DO NOT REMOVE-CONTENTS PLACED HERE--></div>\r\n<!--END WEBSITE FEEDBACK SNIPPET-->","enabled":false},{"pages":["all"],"location":"header","script":"<!-- Hotjar Tracking Code for http://www.dummies.com -->\r\n<script>\r\n (function(h,o,t,j,a,r){\r\n h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};\r\n h._hjSettings={hjid:257151,hjsv:6};\r\n a=o.getElementsByTagName('head')[0];\r\n r=o.createElement('script');r.async=1;\r\n r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;\r\n a.appendChild(r);\r\n })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');\r\n</script>","enabled":false},{"pages":["article"],"location":"header","script":"<!-- //Connect Container: dummies --> <script src=\"//get.s-onetag.com/bffe21a1-6bb8-4928-9449-7beadb468dae/tag.min.js\" async defer></script>","enabled":true},{"pages":["homepage"],"location":"header","script":"<meta name=\"facebook-domain-verification\" content=\"irk8y0irxf718trg3uwwuexg6xpva0\" />","enabled":true},{"pages":["homepage","article","category","search"],"location":"footer","script":"<!-- Facebook Pixel Code -->\r\n<noscript>\r\n<img height=\"1\" width=\"1\" src=\"https://www.facebook.com/tr?id=256338321977984&ev=PageView&noscript=1\"/>\r\n</noscript>\r\n<!-- End Facebook Pixel Code -->","enabled":true}]}},"pageScriptsLoadedStatus":"success"},"navigationState":{"navigationCollections":[{"collectionId":287568,"title":"BYOB (Be Your Own Boss)","hasSubCategories":false,"url":"/collection/for-the-entry-level-entrepreneur-287568"},{"collectionId":293237,"title":"Be a Rad Dad","hasSubCategories":false,"url":"/collection/be-the-best-dad-293237"},{"collectionId":295890,"title":"Career Shifting","hasSubCategories":false,"url":"/collection/career-shifting-295890"},{"collectionId":294090,"title":"Contemplating the Cosmos","hasSubCategories":false,"url":"/collection/theres-something-about-space-294090"},{"collectionId":287563,"title":"For Those Seeking Peace of Mind","hasSubCategories":false,"url":"/collection/for-those-seeking-peace-of-mind-287563"},{"collectionId":287570,"title":"For the Aspiring Aficionado","hasSubCategories":false,"url":"/collection/for-the-bougielicious-287570"},{"collectionId":291903,"title":"For the Budding Cannabis Enthusiast","hasSubCategories":false,"url":"/collection/for-the-budding-cannabis-enthusiast-291903"},{"collectionId":299891,"title":"For the College Bound","hasSubCategories":false,"url":"/collection/for-the-college-bound-299891"},{"collectionId":291934,"title":"For the Exam-Season Crammer","hasSubCategories":false,"url":"/collection/for-the-exam-season-crammer-291934"},{"collectionId":301547,"title":"For the Game Day Prepper","hasSubCategories":false,"url":"/collection/big-game-day-prep-made-easy-301547"}],"navigationCollectionsLoadedStatus":"success","navigationCategories":{"books":{"0":{"data":[{"categoryId":33512,"title":"Technology","hasSubCategories":true,"url":"/category/books/technology-33512"},{"categoryId":33662,"title":"Academics & The Arts","hasSubCategories":true,"url":"/category/books/academics-the-arts-33662"},{"categoryId":33809,"title":"Home, Auto, & Hobbies","hasSubCategories":true,"url":"/category/books/home-auto-hobbies-33809"},{"categoryId":34038,"title":"Body, Mind, & Spirit","hasSubCategories":true,"url":"/category/books/body-mind-spirit-34038"},{"categoryId":34224,"title":"Business, Careers, & Money","hasSubCategories":true,"url":"/category/books/business-careers-money-34224"}],"breadcrumbs":[],"categoryTitle":"Level 0 Category","mainCategoryUrl":"/category/books/level-0-category-0"}},"articles":{"0":{"data":[{"categoryId":33512,"title":"Technology","hasSubCategories":true,"url":"/category/articles/technology-33512"},{"categoryId":33662,"title":"Academics & The Arts","hasSubCategories":true,"url":"/category/articles/academics-the-arts-33662"},{"categoryId":33809,"title":"Home, Auto, & Hobbies","hasSubCategories":true,"url":"/category/articles/home-auto-hobbies-33809"},{"categoryId":34038,"title":"Body, Mind, & Spirit","hasSubCategories":true,"url":"/category/articles/body-mind-spirit-34038"},{"categoryId":34224,"title":"Business, Careers, & Money","hasSubCategories":true,"url":"/category/articles/business-careers-money-34224"}],"breadcrumbs":[],"categoryTitle":"Level 0 Category","mainCategoryUrl":"/category/articles/level-0-category-0"}}},"navigationCategoriesLoadedStatus":"success"},"searchState":{"searchList":[],"searchStatus":"initial","relatedArticlesList":[],"relatedArticlesStatus":"initial"},"routeState":{"name":"ArticleCategory","path":"/category/articles/matlab-33604/","hash":"","query":{},"params":{"category":"matlab-33604"},"fullPath":"/category/articles/matlab-33604/","meta":{"routeType":"category","breadcrumbInfo":{"suffix":"Articles","baseRoute":"/category/articles"},"prerenderWithAsyncData":true},"from":{"name":null,"path":"/","hash":"","query":{},"params":{},"fullPath":"/","meta":{}}},"profileState":{"auth":{},"userOptions":{},"status":"success"}}
Logo
  • Articles Open Article Categories
  • Books Open Book Categories
  • Collections Open Collections list
  • Custom Solutions

Article Categories

Book Categories

Collections

Explore all collections
BYOB (Be Your Own Boss)
Be a Rad Dad
Career Shifting
Contemplating the Cosmos
For Those Seeking Peace of Mind
For the Aspiring Aficionado
For the Budding Cannabis Enthusiast
For the College Bound
For the Exam-Season Crammer
For the Game Day Prepper
Log In
  • Home
  • Technology Articles
  • Programming & Web Design Articles
  • MATLAB Articles

MATLAB Articles

MATLAB is a favorite of quantitative scientists everywhere, and it's insanely useful for people working with scientific research. We explain what it's for and how you can do it.

Articles From MATLAB

page 1
page 2
page 3
page 4
page 5
page 6
page 7
page 8
page 9

Filter Results

83 results
83 results
MATLAB MATLAB For Dummies Cheat Sheet

Cheat Sheet / Updated 07-12-2021

MATLAB is an incredibly flexible environment that you can use to perform all sorts of math tasks. A large array of engineering and science disciplines can use MATLAB to meet specific needs in their environment. Using such a complex environment can prove daunting at first, but this Cheat Sheet can help: Get to know common MATLAB commands; become familiar with common operators and precedence; and learn to recognize line plot styles.

View Cheat Sheet
MATLAB How to Add Math Symbols in MATLAB

Step by Step / Updated 03-27-2017

You would have a tough time presenting formulas to others without being able to use math symbols. MATLAB provides you with a wealth of symbols that you can use for output purposes. Here are the most commonly used symbols and how you access them.

View Step by Step
MATLAB How to Temporarily Change the Current Folder in MATLAB

Step by Step / Updated 03-27-2016

When you first start MATLAB, the current folder always defaults to the MATLAB folder found in your user folder for the platform of your choice. For Windows users, that means the C:Users<User Name>DocumentsMATLAB folder. Burying your data way down deep in the operating system may seem like a good idea to the operating system vendor, but you can change the current folder location to something more convenient when desired. Perhaps your data is actually stored on a network drive, you want to use a shared location so that others can see your data, or you simply want to use a more convenient location on your local drive. The following steps help you change the current folder:

View Step by Step
MATLAB How to Save a Formula or Command as a Script in MATLAB

Step by Step / Updated 03-27-2016

After you create a formula or command that you want to use to perform a number of calculations in MATLAB, be sure to save it to disk. Of course, you can save anything that you want to disk. The following steps help you save any formula or command that you want to disk so that you can review it later:

View Step by Step
MATLAB How to Write Your First MATLAB Script

Step by Step / Updated 03-27-2016

MATLAB provides many different ways to write scripts. Some of them don’t actually require that you write anything at all! However, the traditional way to create a script in any application is to write it. The most common first script in the entire world is the “Hello World” example. The following steps demonstrate how to create such a script using MATLAB.

View Step by Step
MATLAB How to Make a Flat Bar Chart in MATLAB

Step by Step / Updated 03-27-2016

You can create a 3D bar chart in MATLAB. The bar chart is a standard form of presentation that is mostly used in a business environment. You can use a bar chart to display either 2D or 3D data. When you feed a bar chart a vector, it produces a 2D bar chart. Providing a bar chart with a matrix produces a 3D chart. The following steps help you create a 3D bar chart.

View Step by Step
MATLAB How to Install the Symbolic Math Toolbox to Use with MATLAB

Step by Step / Updated 03-27-2016

Once you have obtained a copy of the Symbolic Math Toolbox to use with MATLAB, you should have a number of files on your hard drive. These files provide everything needed to install the Symbolic Math Toolbox. You have two ways by which you can interact with the files: If you were able to use the download agent, you see a dialog box telling you that the download is complete. At this point, you can perform one of these two tasks: Select the Start Installer option and click Finish to start the installation process. The Symbolic Math Toolbox installer will start automatically. Select the Open Location of the Downloaded Files option and click Finish. You see the location of the files open, and you must double-click the installer file to start the installation process. (The installer file is typically the only executable program in the folder.) If you performed the manual download process, you need to find the download location of the files. You must double-click the installer file to start the installation process. (The installer file is typically the only executable program in the folder.) Windows platform users may see a User Account Control (UAC) dialog box when starting the installer. Click Yes to give the installer permission to install the Symbolic Math Toolbox. Otherwise, the installation will fail. No matter how you start the installer, eventually you see a MathWorks installer dialog box. This dialog box determines the source of the files that you use to perform the installation. (Choosing the Install Using the Internet option downloads the files directly from the MathWorks site — you also have the option of using source files on your hard drive.) The following steps help you complete the installation process.

View Step by Step
MATLAB How to Obtain the Symbolic Math Toolbox for MATLAB

Step by Step / Updated 03-27-2016

You need to obtain either a trial version or a purchased version of the Symbolic Math Toolbox before you can do anything else with it in MATLAB. (When getting a trial version, you must discuss the download with someone from MATLAB before you can actually download the product.) Check out the product information and click one of the links in the Try or Buy section of the page. After you have received confirmation of your purchase, use the following steps to obtain the software:

View Step by Step
MATLAB How to Modify the Plot Box Aspect Ratio to Change the Appearance of Your MATLAB Plot

Step by Step / Updated 03-27-2016

MATLAB allows you to modify the plot box aspect ratio. Instead of modifying the data, the plot box aspect ratio modifies the plot box — the element that holds the plot in its entirety — as a whole. The appearance of the data still changes, but in a different way than before. The following steps get you started with this example:

View Step by Step
MATLAB How to Use a Color Bar with Your MATLAB Plot

Step by Step / Updated 03-27-2016

Using a color bar with your MATLAB plot can help people see data values based on color rather than pure numeric value. The color bar itself can assign human-understandable values to the numeric data so that the data means something to those viewing it. The best way to work with color bars is to see them in action. The following steps help you create a color bar by using the colorbar() function and use it to define values in a bar chart:

View Step by Step
page 1
page 2
page 3
page 4
page 5
page 6
page 7
page 8
page 9

Quick Links

  • About For Dummies
  • Contact Us
  • Activate Online Content

Connect

About Dummies

Dummies has always stood for taking on complex concepts and making them easy to understand. Dummies helps everyone be more knowledgeable and confident in applying what they know. Whether it's to pass that big test, qualify for that big promotion or even master that cooking technique; people who rely on dummies, rely on it to learn the critical skills and relevant information necessary for success.

Copyright @ 2000-2024 by John Wiley & Sons, Inc., or related companies. All rights reserved, including rights for text and data mining and training of artificial technologies or similar technologies.

Terms of Use
Privacy Policy
Cookies Settings
Do Not Sell My Personal Info - CA Only