Challenge - 5 Problems
Simulink Model Creator
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediateWhat is the first step to create a new model in Simulink?
You want to start a new simulation project in Simulink. What should you do first?
Attempts:
2 left
💡 Hint
Think about how you start fresh in Simulink.
✗ Incorrect
To create a new model, you open Simulink and choose 'Blank Model' to start building your system.
❓ Predict Output
intermediateWhat is the output after creating and saving a new model named 'test_model'?
You run this MATLAB command sequence:
open_system(new_system('test_model'));
save_system('test_model');
close_system('test_model');
What is the result?
Simulink
open_system(new_system('test_model')); save_system('test_model'); close_system('test_model');
Attempts:
2 left
💡 Hint
Check what 'save_system' does after creating a new model.
✗ Incorrect
'new_system' creates a new model, 'save_system' saves it as a .slx file, and 'close_system' closes it.
❓ data_output
advancedHow many blocks are in a new blank Simulink model immediately after creation?
You create a new blank model in Simulink using the GUI or command line. How many blocks does it contain before adding anything?
Attempts:
2 left
💡 Hint
Think about what a blank model means.
✗ Incorrect
A new blank model starts empty with no blocks until you add them.
🔧 Debug
advancedWhy does this code fail to create a new model named 'myModel'?
Consider this MATLAB code:
new_system('myModel')
save_system('myModel')
close_system('myModel')
It raises an error at 'save_system'. What is the cause?
Simulink
new_system('myModel') save_system('myModel') close_system('myModel')
Attempts:
2 left
💡 Hint
Check if the model is open before saving.
✗ Incorrect
'new_system' creates the model but does not open it. 'save_system' requires the model to be open to save it.
🚀 Application
expertWhich command sequence correctly creates, opens, adds a Gain block, saves, and closes a new model?
You want to automate creating a new Simulink model named 'autoModel', add a Gain block, save, and close it. Which option does this correctly?
Attempts:
2 left
💡 Hint
Remember that 'new_system' returns the model name but does not open it automatically.
✗ Incorrect
Option B creates and opens the model in one step, then adds the block, saves, and closes correctly.
