Search results
This section contains a compilation of all the exercises (21 in total) presented in the course.
- Variables
If one then types “x” in an expression, MATLAB® will use the...
- What is Programming
In this course we are discussing the MATLAB® syntax. When...
- Newton's Method
Notice that in MATLAB help the commands and variables are...
- Debugging with MATLAB
Debugging code in MATLAB helps ensure that code produces the...
- Scope
Change the code so that the function dXdt is defined outside...
- Exercise 11
Debugging with MATLAB Conway Game of Life Warm-up Conway...
- Conway Game of Life Implementation
Put the counting, updating, plotting parts of the game into...
- Logistic Equation
Graphing an iterative function. Hint 2: (Code takes forever)...
- Variables
Introduction to MATLAB – Step by Step Exercise 31. Function: a named section of a program that performs a specific task. Realized that "sum", "length" and "times" is a function sum([1 2]) length([1 2]) times([2],[2])
Your team has been developing code using the usual logical operators following MATLAB syntax: ~,& and |. To save the project you need to write a translator that expresses MATLAB logical expressions using only the nand function.
This collection of exercises is intended to help you start learning Matlab. Matlab is a huge package with many capabilities, but it is easy to use on many levels.
Certain MATLAB functions and operators return logical values to indicate fulfillment of a condition. You can use those logical values to index into an array or execute conditional code.
To practice the following in MATLAB: Creating the graphical layout of a Graphical User Interface (GUI) with GUIDE. Writing function M-files for the GUI, including callback functions. Debugging a program using the MATLAB Editor in Debug Mode.
To practice the following in MATLAB: Creating new functions in function M-Files. Writing script M-files and function M-Files to create MATLAB programs. Using built-in functions and variables such as uigetfile and nargin for program input. Writing if statements for program flow control and using relational operators.