How to set two or more inputs in fuzzy logic controller in simulink?

45 次查看(过去 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 个)

Sanju
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!

类别

Help CenterFile Exchange 中查找有关 Fuzzy Logic Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by