How to loop a discretely varying function in time?

How to run a function like this in a loop where time is increasing?
Radius varying with time: First 2 seconds drops linearly, next two seconds stays constant, next two seconds increases linearly and stays constant for the last two seconds.

Answers (0)

This question is closed.

Tags

Asked:

on 25 Oct 2012

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!