Example Simulink models for the solar sunny vs cloudy example
https://github.com/mathworks/getting-started-with-simulink-for-spc
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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 (2026). "Getting Started with Simulink for SPC" example files (https://github.com/mathworks/getting-started-with-simulink-for-spc), GitHub. Retrieved .
Acknowledgements
Inspired by: "Getting Started with Simulink for Controls" example files, "Getting Started with MATLAB" video example files
General Information
- Version 20.1.2 (854 KB)
-
View License on GitHub
MATLAB Release Compatibility
- Compatible with R2019b and later releases
Platform Compatibility
- Windows
- macOS
- Linux
Versions that use the GitHub default branch cannot be downloaded
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 20.1.2 | Added link to Getting Started with Simulink for SPC video. |
||
| 20.1.1 | Added instructions to open in earlier releases. |
||
| 1.0.0 |
