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

New to MATLAB?

How to work with fcn block in simulink

Asked by Arun Badigannavar on 30 Nov 2012

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 (view profile)

on 30 Nov 2012

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

Products

1 Answer

Answer by Azzi Abdelmalek

Azzi Abdelmalek (view profile)

on 30 Nov 2012
Edited by Azzi Abdelmalek

Azzi Abdelmalek (view profile)

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.

0 Comments

Azzi Abdelmalek

Azzi Abdelmalek (view profile)

Contact us