How to Apply defuzzification using Triangular membership Function in Matrix
조회 수: 4 (최근 30일)
이전 댓글 표시
assume you have the Matrix A,which is square matrix. I want to apply defuzzification using triangular membership function; so that to get original matriMatrix
A=[245 232 100; 125 233 137; 20 248 189];
[m,n]=size(A);
A=double(A)
B=reshape(A,[1,m*n]);
l=length(B);
B= B/255;
for i=1:l
z(i) = trimf(B(i),[0 0.9 1]);
end
C=floor(z*255);
C1=reshape(C,3,3);
the answer i got is C1 = [99 230 111;138 220 152;22 70 210]; how can I return back to original matrix A, by using any defuzzification methods such as centroid,bisector or Middle, Smallest, and Largest of Maximum
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Fuzzy Logic Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!