This repository contains the MATLAB® code for the technical article Developing MATLAB Apps Using the Model-View-Controller (MVC) Pattern. The article provides a step-by-step guide for building a small MVC application. You can inspect the source code and modify it to suit your own application needs.
Developing an application using MVC can help address the following common development concerns when creating large-scale applications:
- Best practices and guidelines for structuring the code base to allow future growth.
- Using a combination of functional and object-oriented programming.
- Working effectively with MATLAB® graphics and user-interface control objects.
- Enabling collaboration within a team by separating the application into components, which are developed and tested simultaneously.
To learn more about developing applications using MATLAB®, check out the training courses Building Interactive Applications in MATLAB® and Advanced MATLAB® Application Development.
- Clone or fork the repository to get started. You may also download the repository content as .zip.
- Open the project by double-clicking on
MVC.prj
. - Run the application using
launchMVCApp.m
in thecode
folder.
MathWorks Product Requirements
Requires MATLAB release R2024b or later.
The license is available in the license.txt file in this GitHub repository.
Copyright 2022 The MathWorks, Inc.