How to set two or more inputs in fuzzy logic controller in simulink?
조회 수: 58 (최근 30일)
이전 댓글 표시
As title, the fuzzy logic controller in simulink only has one inpur and one output, but if I have two or more inputs, how can i set it up?
One way I found is to use Mux, but I'm not sure it's right or not.
In this case, my inputs are steering angle and camber angle, and it will be set as random rumbers and the output should be some numbers which represent the attitude. The bigger number with the bigger angle of attitude.
Thanks for your answers!
댓글 수: 1
답변 (1개)
Sanju
2024년 5월 3일
If you have two or more inputs for your fuzzy logic controller (FLC) in Simulink, you can set it up effectively by following these steps:
- Generate signals for each input variable. In your case, create signals for the steering angle and camber angle. These signals can be generated using sources such as random number generators or imported from sensors.
- Use a Mux block to combine multiple input signals into a single signal. Connect the output of each input signal to the corresponding input port of the Mux block.
- Connect the output of the Mux block to the input port of the FLC block in Simulink.
- Double-click on the FLC block to configure its parameters. Define the membership functions, rules, and output ranges based on your system requirements.
- Simulate the model to observe how the FLC responds to different input combinations.
Using a Mux block allows you to consolidate multiple inputs into a single signal, enabling the FLC to process multiple inputs effectively. This approach ensures that the FLC can handle multiple inputs and produce appropriate outputs based on the defined rules and membership functions.
You can also refer to the below documentation link to see how to setup fuzzy with 2 inouts,
Hope this helps!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Fuzzy Logic Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!