Call continuous data/wave form from M-file to MATLAB simulink model

i want to run my model for 10-Second. I want sine wave upto 5-sec and then from 5-sec to 10-sec, 2 as a constant value. When i use If or For -loop , i am unable to call the M-file program to simulink model. if anyone to the answer.pleasehelp me.
Thanking you

Answers (0)

This question is closed.

Tags

Asked:

on 23 Jan 2014

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!