
This MATLAB introduction covers variables, types, brackets, and order of operations, then vectors and matrices with performance tips. It highlights data visualization, conditionals, loops, and modular code with source files.
Explore the Matlab workspace, command window, current folder, and code editor; create variables, inspect them in the workspace, and run scripts using the run button or F5.
Explore how to customize MATLAB's workspace layout using the layout menu, dock and undock windows, minimize and maximize panels, adjust fonts, and save personalized layouts for efficient coding.
Save and open MATLAB files, navigate folders, and test code in the command window, then use the holy trinity of clc, clear, and close all to reset the workspace.
Learn how variables store changing values and how to assign and reuse them in MATLAB to calculate circle circumference and area with a radius variable.
Understand how MATLAB assigns types by value with no explicit declarations, and how variables can change type while booleans use 0 for false and 1 for true.
Master variable naming by starting with a lowercase letter and capitalizing each new word in multiword names, and improve readability and maintainability by using spaces around operators in Matlab code.
Master the semicolon operator in MATLAB to suppress command window output, view variables on demand by typing their names, and keep larger scripts tidy.
Explore basic arithmetic operations in MATLAB, including addition, subtraction, multiplication, division, and powers, using variables, semicolon suppression, and proper operator syntax with brackets for clarity.
Master the order of operations by using brackets to control powers, division, fractions, and numerator-denominator relationships, and practice with examples to ensure correct results.
Explore vectors in matlab by creating arrays, indexing elements, and generating sequences with the colon operator and linspace, emphasizing 1-based indexing and vectorized math.
Explore arithmetic operations on vectors in MATLAB, including addition, subtraction, and element by element operations with the dot operator, and visualize results with plots while noting size compatibility.
Master concatenating vectors in MATLAB to build a main vector from multiple data sources and append new vectors in real time.
Explore matrices in MATLAB, converting data into two-dimensional matrices with rows and columns. Learn to build, extend, and index matrices using brackets, semicolons, and commas.
Explore matrix arithmetic, including add, subtract, multiply, divide, and power, using two matrices to compute totals, differences, averages, and element-wise versus matrix multiplication.
Learn to create a MATLAB plot showing how current varies with voltage using vectors and a resistor of 10 ohms; plot voltage on the x-axis and current on the y-axis.
Explore MATLAB's logical operators and, or, not, their truth tables, and how to combine conditions for vectors and matrices. Learn to invert results and form nand and nor expressions.
Explore how conditional statements drive code execution using if/else, relational operators, and logical expressions, with examples from matrix concatenation safeguards and even/odd checks via remainder.
Understand how MATLAB uses for and while loops to repeat code, control iterations, and end when a condition is met, with each loop pass as an iteration.
Learn to create and name MATLAB functions, index into a vector with a for loop to sum elements, and plot with predefined styles using a custom gnuplot function.
Discover how MATLAB functions encapsulate code into reusable modules with inputs and outputs. Improve readability, modularity, and maintainability by reusing the same code across scripts and projects.
Master MATLAB for loops by using an iterator, indexing vectors from 1 to n, and updating elements, then compare readable loop code with faster vectorized alternatives.
This course will transform you from a MATLAB Novice into a MATLAB Master. The course was developed under the strict oversight of Hristo Zhivomirov who is one of the top 50 MATLAB contributors Worldwide (search for his name in Google).
The course is structured in a way that is suitable for both beginners and those that already have some experience with MATLAB, there is a lot of information for everyone.
Everything in our world today can be viewed as some kind of a matrix, and I’m not talking about the Matrix Trilogy. For example
Measuring the temperature of a patient every 2 hours, can be represented with a one dimensional matrix, which is also called a vector
Monochromatic (black and white) image is a two dimensional matrix, the values in each cell in the matrix is representing the gradation of the gray color
Measuring temperature in a room for example, rooms are 3D, so we need x, y, z to describe the position at which we take our measurements, and the value is the temperature, that is a three dimensional matrix
Measure now the change of that temperature over a period of time and the temperature becomes a fourth dimension
Now add time in the mix and you get… a fifth dimension!
Actually MATLAB has no restrictions on dimensions, you can work with 4, 5, 6 and more dimensions in a single matrix!
How to handle The Matrix: It is not necessary to look for the red pill, like Neo had to – what you actually need is MATLAB, which means MATrix LABoratory contrary to popular belief. MATLAB is a programming language of high level and interactive programming environment that lets you easily implement numeric experiments and methods, allowing you to design algorithms, analyze data and visualize that data in a very, very powerful way.
You will learn:
Variables, everything you need to know about variables in matlab, their types or lack of types, converting between different types, naming conventions, the semicolon operator and more
Basic Arithmetic Operations in MATLAB, the most important thing in this section of the course are the Brackets and the Order of operations, many beginners get lost when they encounter complex expressions, and you will become a master of those
Right after that we are diving into deep waters starting with Vectors, you will learn how to think in vectors and perform a variety of different operations on and with vectors. Concatenating vectors, extracting or selecting subvectors, and more
Matrices are next on the line, but you wont need any pills, because I have you covered, you will learn everything you need to know about working with Matrices in MATLAB and you will also learn a trick in this section that will help you optimize your code and make it run up to 100 times faster!
Data visualization, because, well, whats the point of working with Data if you cant understand it or share it with other people, visualizing data is key in any area of work
And finally we get to the actual MATLAB Programming by utilizing conditional statements, loops and functions to control the flow of your code, write less code, and make your code modular.
Each section contains a source code file at the end so that you can download and review the code that I have written in the lectures!
I hope that you will enjoy this course, as much as I did creating it, so lets dive right into it!
I welcome you to the course!