Category: MATLAB

  • Bar Graph, Scatter Plot, Pie Chart, Histogram, Log Plot, Polar Plot

    In this lesson, we will be discussing different types of graphs that MATLAB can make. I may not have covered every single type, but these are some popular ones: 1. Bar Graph 2. Scatter Plot 3. Pie Chart 4. Histogram 5. Log Plot 6. Polar Plot video coming soon! Bar Graph I will use the…

    Read more...

  • Solving Ordinary Differential Equations (0DEs)

    In this lesson, we will cover the following topics: 1. Solving First Order Ordinary Differential Equations (ODEs) 2. Solving Higher Order ODEs (Second Order, etc) 3. Solving Systems of ODEs video coming soon Solving First Order Ordinary Differential Equations (ODEs) ODE’s are not typically introduced in an Introduction to MATLAB course, but knowing how to…

    Read more...

  • Using Loops and Indexing

    In this lesson, we will be covering the following topics: 1. Loops with Indexing 2. Loops within Functions 3. Varargin and Nargin 4. Functions within Loops video coming soon! Loops with Indexing We discussed both indexing and loops in previous lessons, but what if we have loops where we need to use indexing within them?…

    Read more...

  • Printing Values

    In this lesson, we will cover how to display values or print them into sentences. This covers: 1. Disp 2. Fprintf video coming soon! This is useful when you want the output of a code to look neater in a table, or in specific sentences. By default, if you don’t use semicolons at the end…

    Read more...

  • While Loops, Infinite Loops, Nested Loops; Using Break, Return

    In today’s lesson, we’re going to cover the following topics: 1. While Loops 2. Infinite Loops 3. Nested While Loops 4. Break Statements 5. Return Statements VIDEO COMING SOON While Loops This is one of the 4 types of control flow logic (recall the 4 types – if-else, switchcase, while loops and for loops). A…

    Read more...

  • Introduction to Control Flow Structures; For Loops, Nested For Loops

    In today’s lesson, we’re going to cover the following topics: 1. Control Flow Structures 2. For Loops 3. Nested For Loops VIDEO COMING SOON Control Flow Structures Within MATLAB, we are able to create codes that will execute a decision for us – “if this happens, then do this” kind of thing. This is called…

    Read more...

  • Solving Systems of Non-Linear Equations

    In today’s lesson we will be discussing how to solve a system of non-linear equations. We will be discussing the following commands: 1. Fsolve 2. Solve and Vpasolve Recall that we discussed solving a system of linear equations in a previous lesson – click here if you missed it. Linear equations are those that graph…

    Read more...

  • Polynomial Operations, Fitting Data to a Polynomial, Evaluating Fit

    Today we will be covering the following topics: 1. Polynomial Operations – Roots, Poly, fminsearch 2. Roots of Non-Linear Functions – Fzero 2. Fitting Data to a Polynomial 3. Evaluating how well the data fit VIDEO COMING SOON Polynomial Operations – Roots, Poly To find the roots (aka the zeroes) of a polynomial function, use…

    Read more...

  • Importing and Exporting Files

    Today we will be covering the following topics: 1. Importing Files into MATLAB 2. Operations with Imported Data 3. Exporting Files from MATLAB 4. Viewing Contents of a MATLAB File Before Opening video coming soon! Importing Files into MATLAB There are ways to import data from other file extensions into MATLAB to use as datasets.…

    Read more...

  • User Defined Functions and Recursive Functions

    Today we will be covering the following topics: 1. User Defined Functions – A general function can go under many different names – an M-File Function, M-Function, or sometimes people just refer to it as a function 2. Nested Functions 3. Nargin and Varargin 4. Recursive Functions VIDEO COMING SOON User Defined Functions Note before…

    Read more...