"Getting Started with Simulink for SPC" example files

Example Simulink models for the solar sunny vs cloudy example
Updated 10 Apr 2020

Explore the models created in the "Getting Started with Simulink for SPC" video.


model1_oneDay.slx - Model analyzing one day of power generation.
model2_filters.slx - Model filtering and displaying the power data.
model3_algorithm.slx - Model of the algorithm showing the sunny vs non-sunny classification.
model4_CcodeGeneration.slx - Model that can be used to generate C code.
model5_HDL.slx - Extra model that has been modified from the previous model to generate HDL code.
SolarArrayData.mat - Data file containing the power data for over 957 days, an example cloudy and sunny day, time and sampling frequency.

All models were created and saved in R2020a. If you are using an earlier release, do the following before opening any models:

(1) Click Preferences in the Home tab of the MATLAB toolstrip.
(2) In the Preferences dialog, select the Simulink pane and then click Open Simulink Preferences.
(3) In the Simulink Preferences dialog, select the Model File pane.
(4) Clear the "Do not load models created with a newer version of Simulink" option.

Cite As

Radu David (2024). "Getting Started with Simulink for SPC" example files (https://github.com/mathworks/getting-started-with-simulink-for-spc), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2020a
Compatible with R2019b and later releases
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes

Added link to Getting Started with Simulink for SPC video.


Added instructions to open in earlier releases.


To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.