How to work with fcn block in simulink

1 view (last 30 days)
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
Azzi Abdelmalek
Azzi Abdelmalek on 30 Nov 2012
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
luciana lima
luciana lima on 10 Aug 2015
Azzi, how can I tune the frequency when I use the source repeating sequence stair?

Sign in to comment.

More Answers (0)

Categories

Find more on Interactive Model Editing in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!