MATLAB Answers

how to do divide by two concept in simulink.

I have to do 5/2. I found the block divide. I would like to know how to mention the division factor 2 in simulink. I use the version 2008b.




2 Answers

Answer by Vishal Rane
on 12 Dec 2012
Edited by Vishal Rane
on 12 Dec 2012

The first input to the Divide block is the Dividend (Numerator)(5) and second input is the Divisor (Denominator)(2).

Use Constant blocks to provide these inputs.


Answer by Azzi Abdelmalek
on 12 Dec 2012
Edited by Azzi Abdelmalek
on 12 Dec 2012

Pass your signal through a gain block with gain value equal to 1/2. Use a divide block when you have to dive varying signal.


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!