How to code a MATLAB/SIMULINK automation from scratch

Learn the programming skills required for developing an automation using MATLAB’s inbuilt scripting environment
Rating: 3.9 out of 5 (154 ratings)
10,785 students
How to code a MATLAB/SIMULINK automation from scratch
Rating: 3.9 out of 5 (154 ratings)
10,785 students
a) You will learn how hand-coded m-scripting is done to develop a GUI based automation from scratch.
b) You will get to know how to interact between MATLAB script and SIMULINK model.
c) You will learn useful built-in commands/functions of MATLAB and to use the command line console.
d) You will get to watch line by line coding, debug using breakpoints, analyze potential logic issues and fix bugs.

Requirements

  • a) No prior MATLAB experience mandatory. But basic SIMULINK modeling knowledge would be useful to understand the SIMULINK integration portion of the course.
  • b) No prior programming experience mandatory
  • c) You don’t need to have a MATLAB installation to take this course. But if you want to try out programming duringthe lecture you could download and use a trial version from the Mathworks website
Description

As the title implies this course shows you how to develop a MATLAB automation program from scratch. The automation itself contains only minimal features but my emphasis here was to show you, especially if you are a beginner, the coding process one can take to start developing a full-fledged automation. It doesn’t use any presentation slides for explaining MATLAB programming concepts or have any lengthy intro for each lecture;  instead I walk you through each line of code as it is typed starting from the first line of code which as you progress through the lectures build up to the final automation program. Also I couldn't get around to adding descriptions or any supplementary resources for the course lectures due to various schedules. But I hope the course lectures will turn out to be worth your time.

And of course the best part is that its FREE!

Happy learning then!

Who this course is for:
  • a) A beginner who wants to learn how MATLAB coding is done line by line for creating an automation
  • b) Professionals who are looking to fine tune their automation programming skills
Course content
7 sections • 34 lectures • 4h 49m total length
  • Create a Basic Figure
    08:56
  • Create tables in the figure
    16:59
  • Create Push Button to interact with the table
    09:14
  • Program the Add Row Push Button Callback
    09:07
  • Program the Delete Row Push Button Callback
    07:37
  • Program the Add Column Push Button Callback
    10:04
  • Program the Delete Column Push Button Callback
    07:51
  • Debugging using Breakpoints: Quick Debugging of the Add Row Callback
    07:59
  • Create and Position the Add/Delete Row/Column Push Buttons for the second table
    05:01
  • Create an Import Push Button for the Input Table
    07:11
  • Program the Import Input Push Button Callback
    12:18
  • Program the Export Input Push Button Callback
    04:03
  • Create Export/Import Output Push Button and Callbacks
    07:58
  • Set few more properties of Push Buttons
    07:32
  • How to interact with a SIMULINK model
    09:35
  • Create the Transfer Data Push Button
    05:00
  • Program the Transfer Data Callback: Set Start Time, End time, Step Time of model
    14:02
  • Make directories and get the interpolated time data
    07:11
  • Program the for loop: Interpolate the data values as desired
    06:45
  • Verify interpolated data values
    09:13
  • Save timed data to a MAT file
    06:34
  • Debug and verify the MAT file data
    07:35
  • Create the Input Subsystem in the SIMULINK model for data transfer
    12:14
  • Create SIMULINK blocks for routing input data
    08:14
  • Set block parameters for input data routing
    09:24
  • Connect the blocks in the Input subsystem
    04:31
  • Create SIMULINK blocks for routing output data
    07:26
  • Set block parameters and connect blocks for output data routing
    17:18
  • Find a subsystem inside the model, verify routing of input and output data
    14:19
  • Initialize model parameters, Simulate model, and observe MAT file data
    07:00
  • Create Push Button for programmatic simulation
    05:25
  • Program the Start Simulate Callback, Verify output MAT file data after execution
    06:26
  • Create Stop Simulate Push Button, Verify output MAT after callback execution
    03:38
  • Table CellSelectionCallback
    05:20

Instructor
Engineer, Developer and Researcher
Pranesh Gopakumar
  • 3.9 Instructor Rating
  • 154 Reviews
  • 10,785 Students
  • 1 Course

I've worked for technologies pertaining to Consumer Electronics, Industrial Automation Systems, Automotive and Aerospace.  Executed Model Based Design and Development projects using various MATLAB tools and packages for Control Systems life-cycle processes in Automotive and Aerospace technologies. Among those were projects for highly reputed clients such as Boeing,  Daimler - Mercedes Benz,  and United Technologies Corporation - Aerospace Systems (now Collins Aerospace)