How to apply If else Condition in simulink?
Show older comments
Hi,
I want to apply an ifelse condition in simulink. How can I do that? There is a if block I can see in library but I am not sure whether it can compare it's input or not. Its showing me an syntax error massage.
In my model I have three outputs(amplitude values of some frequencies after doing fft and some other operations). For example, the amplitude values are 15, 20 and 25 corresponding frequencies are 1,2 and 3. After comparing them I want to display (using a display block) that 3 is the max frequency. Its very basic I know but I am very in in simulink. Any help would be so much appreciated. Thanks in advance.
Answers (1)
Azzi Abdelmalek
on 31 Jul 2013
0 votes
1 Comment
M. Riadh Arefin
on 31 Jul 2013
Categories
Find more on Modeling in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!