ECOR 1010 Lecture Notes - Lecture 18: Matlab
Document Summary
When creating variables, you contain them in the matlab workspace. You can type in clear ___ with a variable name in the blanks, to clear that variable from the matlab workspace. Likewise you can type in clear to clear all variables in the matlab workspace. It is a powerful, yet simple programming language. There are many more built-in functions in comparison to other commonly used languages. Saves you having to code on your own, lets you use pre-existing functions. In some cases, it can be slow however. Major function is that it is able to do matrix manipulations. Repeats a set of commands a specified number of times. Ie. for x would repeat the loop x times. Finish the loop with end on the same indentation level as the header of the loop. You can also create nested loops, where one is inside the other.