inflearn logo

Introduction to Practical Automotive MBD with MATLAB/Simulink: From Modeling to Verification and Code Generation

This course covers everything from the necessity of MBD in automotive software development to Simulink/Stateflow-based control modeling, MIL verification, and the code generation workflow. Rather than just teaching how to use blocks, it focuses on the practical professional workflow—implementing requirements into models, verifying them through simulation, and explaining how the generated C code integrates with actual ECU software structures.

(4.9) 9 reviews

69 learners

Level Basic

Course period Unlimited

MATLAB
MATLAB
MATLAB
MATLAB

What you will gain after the course

  • Automotive MBD development flow: requirements, modeling, verification, and code generation

  • You can configure control logic based on models using Simulink and Stateflow.

  • You can understand the purpose of MIL verification and how to configure test scenarios.

  • You can distinguish the respective roles of MIL, SIL, PIL, and HIL in the V-cycle.

  • You can read the structure of C code generated by Embedded Coder and the perspective of ECU/BSW integration.

  • In automotive control software development, it can be understood that a model is not just a simple drawing, but an executable design asset.

Special 20% discount coupon!

Link: https://inf.run/uJMVR


Automotive MBD Development

Experience it from start to finish with MATLAB/Simulink

Based on the DC Motor inverter control SWC example

Requirement analysis, defining Controller/Plant boundaries,

Simulink/Stateflow modeling, Unit Test/MIL verification,

Connect everything into a single flow, all the way to Embedded Coder code generation.

  1. I am preparing for an automotive R&D role, but I have no idea how requirements translate into models and testing.

  1. I've looked at Simulink a bit, but I don't know how to define the Controller/Plant boundaries and the SWC structure.

  1. I want to see the flow that doesn't just end with modeling, but connects all the way to Unit Test/MIL verification and code generation.

Learn the practical MBD workflow by designing a requirements-based inverter control SWC.

• Systematically organize the entire workflow of automotive MBD development, from requirements analysis to modeling, verification, and code generation.

• You can understand what each stage of MIL, SIL, PIL, and HIL verifies, why they are necessary, and what roles they play in the development process.

• You can learn MATLAB/Simulink not just as a simple tool, but by connecting it to practical automotive software development.

✔️

You will learn the automotive MBD development workflow,
not just simple Simulink functions

Requirements → Modeling → Verification → Code Generation leading to

Understand MBD based on the automotive SW development flow.

Start by grasping the big picture
of automotive SW development.

Automotive control software begins with requirements and leads to modeling, verification, and code generation. By first clarifying where MBD fits within the V-cycle, we enable an understanding of the actual flow of automotive development.

Practical MBD Development Workflow

To implement actual vehicle control logic, you will practice state machine design using Stateflow, SWC (Software Component) development, and PI controller modeling. Additionally, you will experience each stage of the MBD development process through MIL verification scenario configuration and integrated simulation using vehicle and plant models.



Executable Design Assets and Code Generation

You will learn how to implement requirements into actual executable design assets, going beyond simple modeling. By analyzing the structure of C code generated using Embedded Coder and understanding the perspective of integration with ECU/BSW, you can gain a clear understanding of how model-based development connects to actual mass-production software development.



📚

Master the practical MBD development workflow at a glance

Section 1

Course Introduction and MBD Development Environment Setup

This lecture introduces the goals of the course and the overall workflow of automotive MBD (Model Based Design) development. Additionally, it completes the learning preparation, including the MATLAB/Simulink environment setup.



Section 2

MBD Basics and State Machine Modeling

Learn the Simulink/Stateflow-based modeling method and implement the state machine required for inverter control step-by-step. You will learn how control logic is represented as a model while configuring various operating states and transition conditions. Functional safety and ASIL will be summarized focusing on the conceptual flow necessary to understand before the hands-on practice.


Section 3

SW Architecture Design and Control Logic Implementation

We perform requirement-based system architecture design, data management using SLDD, and modeling of various SW components such as CAN communication and PI controllers. This establishes the foundation for integrated modeling and verification.



Section 4

Unit Test, Integrated Modeling, Verification, and Code Generation

We configure SWC unit tests and MIL scenarios to verify inputs, expected outputs, and PASS criteria. We integrate the Controller with a simulation-only Plant to verify model behavior and check the C code generation results using Embedded Coder.


We can solve the concerns
of people like this!

📌

Getting started with automotive MBD for the first time

  • Those who have started learning MATLAB/Simulink but haven't yet grasped the flow of how MBD is actually used in automotive development

  • Engineers who want to organize from scratch how requirements, modeling, verification, and code generation are connected in sequence

📌

Job seekers and entry-level professionals preparing for automotive R&D roles

  • Preparing for research and development roles at
    automotive companies or parts suppliers,

    Job seekers who want to understand the control software development process

  • Terms like V-cycle, SWC, Unit Test, MIL, and CodeGen

    Those who want to understand the development workflow rather than just memorizing it.


📌

Those who want to expand from embedded/control SW to
MBD

  • Those who have experience in C code or firmware development, but

    Engineers who are unfamiliar with Simulink/Stateflow-based modeling and code generation workflows

  • Controller/Plant boundaries, SWC structures, and verification scenarios

    Those who want to organize their knowledge from the perspective of automotive control software

Notes before taking the course


Practice Environment

  • MATLAB/Simulink R2025b or a later version must be installed.

  • Windows 10/11 (64-bit) operating system is recommended.

  • A minimum of 8GB RAM and at least 20GB of storage space is recommended.

Prerequisites and Important Notes

  • You must be familiar with the basic usage of MATLAB/Simulink.

  • Basic knowledge of C language is required.

  • It is okay even if you have no prior experience with the MBD development process.

Learning Materials

  • Practice MATLAB model files provided in the lecture are available.


  • PDF lecture materials containing key concepts will be provided.


Recommended for
these people

Who is this course right for?

  • Those who have basic knowledge of MATLAB/Simulink and MBD and wish to develop advanced capabilities by applying them to real-world projects.

  • Those who have learned MATLAB/Simulink but lack a sense of how it is actually used in real-world automotive MBD development.

  • Those who feel that MIL verification, code generation, and the V-cycle concept are disconnected and want to organize the overall flow.

  • Embedded software developers who want to expand into the field of automotive control/MBD.

  • Those who want to set a direction for their MBD portfolio while preparing for a job or career move in the automotive software field.

Need to know before starting?

  • It is helpful to have a basic understanding of programming concepts.

  • Understanding the concepts of functions, variables, and structures in C will help you understand the code generation part.

  • The explanation is designed so that even those seeing MATLAB/Simulink for the first time can follow along, but it will be easier if you are familiar with the basic interface layout and the concept of connecting blocks.

Hello
This is insid2embedded

Inflearn Verified

Career Verified

771

Learners

98

Reviews

177

Answers

4.9

Rating

4

Courses

Hello, I am Control Guy.

I am a working engineer currently developing electrification (motor/inverter) systems at a major corporation.

Based on my experience directly handling everything from circuits, PCBs, and firmware to control algorithms in mass-production projects, I am creating educational content for embedded developers while running the YouTube/Naver blog "Inside Embedded".

I aim to explain the practical aspects actually used in the field that are rarely covered in books or classrooms :)

  • Collaboration with global automotive OEMs

  • 3-Phase Inverter Hardware Development (Circuit / PCB)

  • BLDC · PMSM · WFSM (Wound Field Synchronous Motor) control algorithm development

  • Overall electrification system development / verification process

  • Experience in vehicle and bench-based evaluation


Cafe : https://cafe.naver.com/insideembedded?iframe_url=/MyCafeIntro.nhn%3Fclubid=31273003

Blog : https://blog.naver.com/sw_engineer-

YouTube : https://www.youtube.com/@Inside_Embedded

Open Chat Room: https://open.kakao.com/o/gsUVs3Uh

More

Curriculum

All

39 lectures ∙ (6hr 15min)

Course Materials:

Lecture resources
Published: 
Last updated: 

Reviews

All

9 reviews

4.9

9 reviews

  • haku33님의 프로필 이미지
    haku33

    Reviews 8

    Average Rating 5.0

    5

    32% enrolled

    I am really enjoying this because it's a type of lecture that didn't exist in Korea before.

    • aceoftop1975님의 프로필 이미지
      aceoftop1975

      Reviews 130

      Average Rating 5.0

      5

      100% enrolled

      ===== 26/06/28/Sun 13:07 ===== I learned about Simulink through your lecture. Unit testing and plant model implementation... It was my first time learning about these topics, so it was really great. Thank you for creating such a good lecture.

      • insid2embedded
        Instructor

        You've already finished the entire course! Haha. Thank you so much for taking the course and even leaving a review :)

    • cool22c5472님의 프로필 이미지
      cool22c5472

      Reviews 2

      Average Rating 4.0

      4

      100% enrolled

      • insid2embedded
        Instructor

        Thank you for taking the course! haha If you let me know about any areas that were lacking, I will try to supplement and update them!

    • embedded님의 프로필 이미지
      embedded

      Reviews 4

      Average Rating 5.0

      5

      62% enrolled

      • insid2embedded
        Instructor

        Thank you for taking the course!

    • devil0001028888님의 프로필 이미지
      devil0001028888

      Reviews 1

      Average Rating 5.0

      5

      32% enrolled

      • insid2embedded
        Instructor

        Thank you so much for taking the course haha

    25% off for new members

    $70.10

    25%

    $100.10