How to display a graph from a specific time in Simulink?

3 views (last 30 days)
Hey there!
I have a question on how to show a scope in Simulink from a specific time, for example; In the attached graph I would like to show the graph from 0.3 seconds, I thought I could solve it with the offset parameter of the display, but this does not do what I want, it only moves the graph and it starts in 0.3 seconds, but the start is still shown of the graph which is precisely what I do not want to graph.
If anyone could help me, I thanks in advance.

Answers (1)

Aashray
Aashray on 19 Jun 2025
Hi @BBBC,
I faced a similar issue once, and after some experimentation, I found that we can use Enabled Subsystem. Here is how I built the system:
  1. Add a Clock block to track simulation time.
  2. Use a “Compare To Constant” block (>= 0.3) to generate an enable signal once time reaches 0.3 seconds.
  3. Feed this enable signal into the Enable port of an Enabled Subsystem.
  4. Inside the Enabled Subsystem, keep the desired system.
  5. Connect the original signal to the input of the Enabled Subsystem.
I have attached the model I made for your reference.

Categories

Find more on Simulink in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!