File Exchange

image thumbnail

"Getting Started with Simulink for SPC" example files

version 20.1.2 (854 KB) by Radu David
Example Simulink models for the solar sunny vs cloudy example


Updated 10 Apr 2020

From GitHub

View Version History

View license on GitHub

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 (2021). "Getting Started with Simulink for SPC" example files (, GitHub. Retrieved .

Comments and Ratings (0)

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!