I have set up a Fuzzy logic system which takes 2 inputs and produces one output. To evaluate one set of inputs (1,2) you would use the code
Model = readfis ('tipper'); evalfis([1 2], Model)
My question is, say for example I had a .mat file with 100 pairs of inputs called input.mat. Would I use a function to pass all these inputs into the fuzzy model and produce an output file with the output? Would anybody be able to help with the function (point 3):
Would it be something like this:
1. I would load the fuzzy logic model
Model = readfis ('tipper');
2. Load the inputs - input.mat
3. Pass it into a function
No products are associated with this question.
Have you seen the doc page for evalfis, specifically this part:
evalfis has the following arguments:
As the doc says make your input argument a matrix of 100X2, and everything works.
Model = readfis ('tipper'); U=ones(100,2); U(:,2)=10*rand(size(U(:,2))); Y=evalfis(U, Model);
Play games and win prizes!Learn more