How to change output value from simulink logic blocks

5 views (last 30 days)
Hello,i have a simulink question about logic blocks.In my case,i used Fuzzy logic controller to determine input value, the range from 0.029 to 0.838, and now i'll want to gain some value double. My comparison value is 0.4 ,but the compare to constant block's output value is 0 if the comparison is false, and 1 if it is true. if i want the value which is greater than or equal to my comparison value gain double and the value which is less than my comparison value is the same with input value. (ex: if input is 0.53 then output is 1.06 if input is 0.38 then output is 0.38) what should i do? or what block should i use? thank you

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 21 Nov 2013
Edited: Azzi Abdelmalek on 21 Nov 2013
You can use switch block
or you can use compare to constant block

More Answers (0)

Categories

Find more on Modeling in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!