필터 지우기
필터 지우기

in gaussian membership function from what value of signal the mean is subtracted?

조회 수: 1 (최근 30일)
for i=1:n
A(i)=exp(-0.5*((x-c(i))./s(i)).^2);
end
where
x=sin(2*pi*t)
t=1:.3:10
n=length(x)
c=.4*ones(1,n) %mean
s=.4*ones(1,n) %variance
for each iteration what is the value of x from which mean is subtracted ?

채택된 답변

Image Analyst
Image Analyst 2013년 12월 19일
편집: Image Analyst 2013년 12월 19일
It's all values of x. x is an array and if you don't specify an element, like x(i), then it does ALL elements. So it won't work because you'd be trying to stuff a whole vector into a single element of A. I'd say that you probably want x(i) instead of x.
Try it this vectorized way instead:
t=1:.3:10
x=sin(2*pi*t)
n=length(x)
c=.4*ones(1,n) %mean
s=.4*ones(1,n) %variance
A = exp(-0.5*((x-c)./s).^2)
  댓글 수: 6
pinak parida
pinak parida 2014년 1월 5일
sir , do you know anyone i can contact?
thankyou
Image Analyst
Image Analyst 2014년 1월 5일
There is a fuzzy logic toolbox, though I don't recall seeing a lot of fuzzy questions here. You can try rephrasing your question, listing "Fuzzy Logic Toolbox" in the product list, and making the title something like "Need help with Fuzzy Logic program" to see if any fuzzy experts here answer you. The Mathworks tech support line won't help with algorithm development, only things like errors, syntax, and other purely MATLAB-related stuff like that.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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