Error while building a custom AND/OR function and Custom implication functions
Afficher commentaires plus anciens
I want to create a custom fuzzy operator 'bounded_sum' and I have defined it as
function out = bounded_sum( x , y)
%UNTITLED Summary of this function goes here
% Detailed explanation goes here
z=zeros(size(x);
out = min(1,x+y)
end
I am get following error
Error using bounded_sum (line 5) Not enough input arguments.
Error in evalfis (line 84) [output,IRR,ORR,ARR] = evalfismex(input, fis, numofpoints);
Error in ruleview (line 451) [v,irr,orr,arr]=evalfis(inputVector,fis, numPts);
Error in ruleview (line 313) ruleview #update
Error in fisgui (line 102) eval([tag '(fis);']);
Error while evaluating uimenu Callback
Kindly help me out.
4 commentaires
Azzi Abdelmalek
le 10 Fév 2013
how did you call your function?
VAIBHAV AGRAWAL
le 11 Fév 2013
Azzi Abdelmalek
le 11 Fév 2013
how your fuzzy toolbox calls this function?
VAIBHAV AGRAWAL
le 11 Fév 2013
Réponses (2)
Azzi Abdelmalek
le 10 Fév 2013
Modifié(e) : Azzi Abdelmalek
le 10 Fév 2013
Call your function%
x=rand(4,5);
y=rand(4,5)
out = bounded_sum( x , y)
% there is no error in your function, maybe it was not correctly called.
z=zeros(size(x)); % is enough
Just a note: You can simplify your function:
function out = bounded_sum( x , y)
out = min(1, x + y);
end
A complete copy of the error message is usually helpful in the forum.
1 commentaire
VAIBHAV AGRAWAL
le 11 Fév 2013
Catégories
En savoir plus sur Fuzzy Logic in Simulink dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!