How to work with fcn block in simulink

u=1:1:100,,,,,,,,,,I want caculate sin(u),,,for every value from 1 to 100 with increment of 1,,,How will I do this in simulnik

1 Comment

1 is the increment of u, what about the time step size, is it variable? fixed?

Sign in to comment.

 Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 30 Nov 2012
Edited: Azzi Abdelmalek on 30 Nov 2012
To generate u, use a source repeating sequence stair block, then connect it to sine wave function block from simulink/math operations.

1 Comment

Azzi, how can I tune the frequency when I use the source repeating sequence stair?

Sign in to comment.

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!