MATLAB Answers

0

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

Azzi Abdelmalek
on 30 Nov 2012

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

luciana lima
on 10 Aug 2015

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


Discover MakerZone

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

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!