Filter löschen
Filter löschen

use evalfis with 2 input

1 Ansicht (letzte 30 Tage)
Dani D
Dani D am 11 Mär. 2016
Hello, I have two input in my FIS. and in m-file i want send two number to FIS from m-file with evalfis. What i do? The under code with one input number for FIS with one input .
clear all;
close all;
clc
I=imread('cameraman.tif');
figure
subplot(2,2,1);
imshow(I);
title('Original');
subplot(2,2,2);
imhist(I);
title('Original Histogram');
I=double(I);
fis=readfis('FIS5');
[m , n]=size(I);
for i=1:m
for j=1:n
I(i,j)=evalfis(I(i,j),fis);
end
end
subplot(2,2,3);
imshow(uint8(I));
title('After');
subplot(2,2,4);
imhist(I.*255);
title('After Histogram');
(i have the under FIS and send two number for FIS system with two input)

Antworten (0)

Kategorien

Mehr zu Fuzzy Logic Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by