Docsity
Docsity

Prepara tus exámenes
Prepara tus exámenes

Prepara tus exámenes y mejora tus resultados gracias a la gran cantidad de recursos disponibles en Docsity


Consigue puntos base para descargar
Consigue puntos base para descargar

Gana puntos ayudando a otros estudiantes o consíguelos activando un Plan Premium


Orientación Universidad
Orientación Universidad

Conjuntos y Operadores difusos, Apuntes de Sistemas de Control

Operaciones Difusas, operaciones clásicas y simulación de funciones de membresía típicas en MatLab

Tipo: Apuntes

2020/2021

Subido el 13/06/2021

ana-vvr-4
ana-vvr-4 🇲🇽

5

(1)

2 documentos

1 / 7

Toggle sidebar

Esta página no es visible en la vista previa

¡No te pierdas las partes importantes!

bg1
1
Practica 1
Conjuntos y Operadores difusos
Se utilizó la función de membresía típica Gaussin MF para realizar el siguiente código en
MATLAB.
>> x=0:0.1:10;
>> yA=gaussmf(x,[2 5]);
>> yB=gaussmf(x,[1 7]);
>> %unión=máx(uA,uB)
yC1=max(yA,yB);
>> %interseccion=min(uA,uB)
yC2=min(yA,yB);
>> %Complemento
yC3=1-yA;
>> figure(2)
%unión
subplot(3,3,1)
plot(x,yA,'b','linewidth',2);
subplot(3,3,2)
plot(x,yB,'r','linewidth',2);
subplot(3,3,3)
plot(x,yC1,'--k','linewidth',2);
%interseccion
subplot(3,3,4)
plot(x,yA,'b','linewidth',2);
subplot(3,3,5)
plot(x,yB,'r','linewidth',2);
subplot(3,3,6)
plot(x,yC2,'--k','linewidth',2);
%complemento
subplot(3,3,7)
plot(x,yA,'b','linewidth',2);
subplot(3,3,8)
plot(x,yC3,'--k','linewidth',2);
Operaciones Difusas
UNION
INTERSECCION
COMPLEMENTO
pf3
pf4
pf5

Vista previa parcial del texto

¡Descarga Conjuntos y Operadores difusos y más Apuntes en PDF de Sistemas de Control solo en Docsity!

Practica 1

Conjuntos y Operadores difusos

Se utilizó la función de membresía típica Gaussin MF para realizar el siguiente código en MATLAB.

x=0:0.1:10; yA=gaussmf(x,[2 5]); yB=gaussmf(x,[1 7]); %unión=máx(uA,uB) yC1=max(yA,yB); %interseccion=min(uA,uB) yC2=min(yA,yB); %Complemento yC3=1-yA; figure(2) %unión subplot(3,3,1) plot(x,yA,'b','linewidth',2); subplot(3,3,2) plot(x,yB,'r','linewidth',2); subplot(3,3,3) plot(x,yC1,'--k','linewidth',2); %interseccion subplot(3,3,4) plot(x,yA,'b','linewidth',2); subplot(3,3,5) plot(x,yB,'r','linewidth',2); subplot(3,3,6) plot(x,yC2,'--k','linewidth',2); %complemento subplot(3,3,7) plot(x,yA,'b','linewidth',2); subplot(3,3,8) plot(x,yC3,'--k','linewidth',2);

Operaciones Difusas

UNION INTERSECCION COMPLEMENTO

%unión subplot(3,3,1) plot(time,yA,'b','linewidth',2); subplot(3,3,2) plot(time,yB,'r','linewidth',2); subplot(3,3,3) plot(time,yC1,'--k','linewidth',2); %interseccion subplot(3,3,4) plot(time,yA,'b','linewidth',2); subplot(3,3,5) plot(time,yB,'r','linewidth',2); subplot(3,3,6) plot(time,yC2,'--k','linewidth',2); %complemento subplot(3,3,7) plot(time,yA,'b','linewidth',2); subplot(3,3,8) plot(time,yC3,'--k','linewidth',2); UNION COMPLEMENTO INTERSECCION

Gaussin MF x=0:0.1:10; y=gaussmf(x,[2 5]); plot(x,y,'b','linewidth',2); xlabel('x'); ylabel('y'); Campanulate MF x=0:0.1:10; y=gbellmf(x,[2 4 6]); plot(x,y,'b','linewidth',2); xlabel('x'); ylabel('y');

Simulación de funciones de membresía típicas

Triangle MF x=0:0.1:10; y=trimf(x,[3 6 8]); plot(x,y,'b','linewidth',2); xlabel('x'); ylabel('y'); Z-type MF x=0:0.1:10; y=zmf(x,[3 7]); plot(x,y,'b','linewidth',2); xlabel('x'); ylabel('y');