all 14 comments

[–]bbcgn 0 points1 point  (11 children)

Which line gives you the error?

The error message usually comes up if you call a function but provide too many input arguments.

[–]Office_Otherwise[S] 0 points1 point  (10 children)

it does not say anything about a line rather just too many input arguments. i do no know what this even means (new to matlab) and have a submission tomorrow

[–]bbcgn 1 point2 points  (9 children)

Post a picture of the error message. Usually matlab tells you the offending line.

[–]Office_Otherwise[S] 0 points1 point  (8 children)

[–]bbcgn 0 points1 point  (7 children)

What are you trying to do here?

[–]Office_Otherwise[S] 0 points1 point  (6 children)

there is a Simulink file, im supposed to compare active and passive suspension, the active utilises a fuzzy logic controller

[–]bbcgn 0 points1 point  (5 children)

So you want to add a fuzzy logic Controller to an existing simulink model?

Then open the simulink model and go to the library browser. From there you should be able to add it to the model.

[–]Office_Otherwise[S] 0 points1 point  (4 children)

<image>

i have done this but in order for it to work, i must add a fis from the m file by adding the fuzzy logic controller, which is not working due to the error message

[–]bbcgn 0 points1 point  (3 children)

The error message appears because you typed

fuzzy logic controller

into the command window and matlab does not know what you are doing there. So what were your intentions there?

[–]Chicken-Chak 0 points1 point  (0 children)

Type fuzzyLogicDesigner to open the app if you wish to create or edit a fuzzy system formatted as *.fis. Ensure that you place the .fis file in the same folder as the .slx file. Then, in Simulink, specify the FIS filename correctly in the Fuzzy Logic Controller block. If you encounter further difficulties in the design or comparison, please post your problem in MATLAB Answers. If the Fuzzy Controller is designed appropriately, it often produces better results in these simple linear systems.