
Explore the MATLAB user interface, focusing on the command window for entering and running commands, the workspace with variables, the current folder view, and the optional command history.
Learn to perform basic arithmetic in MATLAB, including addition, subtraction, multiplication, and division. Explore forward slash division, backslash caveats, power operations, and using a decimal point for numbers.
Explore arithmetic operators in MATLAB basics by calculating square roots, including complex results for minus seven, computing cube roots via exponent 1/3 or the nth root function, and natural logarithms.
Explore MATLAB relational operators to compare numbers, using greater than, less than, greater or equal, smaller or equal, and equality tests with double equal and not equal (tilde equal).
Create row and column vectors in MATLAB using square brackets, semicolons, and apostrophes; generate sequences with 1:9, 1:0.5:9, or linspace(start, end, elements).
Learn to create column vectors in MATLAB, perform addition, subtraction, and scalar multiplication, and compute dot and cross products with dot and cross, ensuring same size for addition or subtraction.
Learn to create and transpose matrices in MATLAB by defining a 3x3 matrix with semicolon-separated rows, suppress outputs with a semicolon, use the apostrophe for transposition, and inspect the workspace.
Create a MATLAB identity matrix by specifying the number of rows and columns; fill all off-diagonal elements with zero and diagonal elements with one.
Learn to create a magic matrix in MATLAB. A magic matrix has equal row and column sums and uses values 1 to n^2, as shown for 3x3 with sum 15.
Explore how indexing works in a 3x3 matrix in MATLAB, retrieving the element at row 3, column 2, and counting elements by column for linear indexing.
In this video you are going to learn how to compute the rank, trace, eigenvalues, determinant and an inverse of a matrix.
Learn to create and save scripts as m-files by opening the editor window with the script button or edit command, and dock or resize the interface for comfortable coding.
Create an M-file to compute cylinder volume with h = 10 and r = 5, using V = h*pi*r^2, save as volume cylinder, and run to view the result.
Name m-files by starting with a letter and limiting characters to letters, numbers, or underscores. Use save as examples to show valid and invalid names for MATLAB.
Create a MATLAB m-file to plot a cosine function from -5 to 5 with 100 x-values, compute y = cos(x), and display the result with dot markers.
Add an x-axis label, a y-axis label, and a title to the plot. Clarify the Carson function plot for readers.
Plot cosine and sine on the same figure in MATLAB using hold on, overlay the curves, color the second red, and update the title to cosine and sine.
Learn how to save a plot you created in MATLAB using save as, or a print function to export as PNG or JPEG for reports or further proceedings.
Import data from an ASCII text file into MATLAB, assign it to a variable named data, and inspect a 12-element column vector of company revenues.
Learn how to import data from an Excel file into MATLAB, assign it to a variable named data, and view a nine-element column vector after loading.
import data from an ascii file containing revenues of twelve companies and perform statistical calculations in Matlab basics, including min, max, mean, median, 0.3 quantile via quantizer, and standard deviation.
Explore data visually by creating a box plot with MATLAB's boxplot function and a histogram, using default and adjustable intervals to reveal medians, outliers, and distribution.
This course is designed to help you get started working with Matlab. Following topics are going to be covered: