MATLAB: How to plot a graphic on Simscape

graphicMATLABSimscapesimulink

Hello, I am new in Simscape plot and I am trying to simulate Mass-Spring-Damper like the image below.
But when I run the simulation, this error appears
Well, I just set the deformation of spring was 1m and nothing more.
Could you help me?
Cheers

Best Answer

The error message is trying to tell you that you need to connect a Solver Configuration block to the Simscape network you have built. Once you have done that, then you will be able to simulate.
There is a tutorial in the Simscape documentation that takes you step-by-step through building a model, including ways to plot results using the Simscape Results Explorer . I really recommend going through it, for it shows you many tips and tricks that will accelerate your work.
Thanks,
--Steve
Related Question