MATLAB Answers


How to work with fcn block in simulink

Asked by Arun Badigannavar on 30 Nov 2012
Latest activity Commented on by luciana lima
on 10 Aug 2015

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?

1 Answer

Answer by Azzi Abdelmalek
on 30 Nov 2012
Edited by Azzi Abdelmalek
on 30 Nov 2012
 Accepted answer

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?

Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!