Está en la página 1de 6

R.

f_S(100,25,75)

function A=f_S(univ,x1,x2)
x=0:0.1:univ;
n=length(x);
l=x1;
r=x2;
for i=1:n
if x(i)<=l
A(i)=0;
elseif x(i)>l && x(i)<=(l+r)/2
A(i)=2*(((x(i)-l)/(r-l))^2);
elseif x(i)>(l+r)/2 && x(i)<=r

f_S(100,45,95)

A(i)=1 - 2*(((r-x(i))/(r-l))^2);
elseif x(i)>r
A(i)=1;
end
end
plot(x,A);
end

f_S(100, 50,65)

R.2

f_Z(100,45,95)

function B=f_Z(univ,x1,x2)
x=0:0.1:univ;
n=length(x);
l=x1;
r=x2;
A = f_S(univ,x1,x2);
for i=1:n
B(i) = 1 - A(i);
end
plot(x,B);
end

f_Z(100,25,75)

f_Z(100,50,65)

R.3

f_PI(100,25,50)

function C=f_PI(univ,x1,x2)
x=0:0.1:univ;
n=length(x);
a=x1;
c=x2;
A=f_S(univ,x2-x1,x2);
B=f_Z(univ,x2,x2+x1);
for i=1:n
if x(i)<=c
C(i)=A(i);

f_PI(100,12,50)

else
C(i)=B(i);
end
end
plot(x,C);
end

f_PI(100,12,75)

R.4

f_PI2(100,30,45,55,70)

function D=f_PI2(univ,x1,x2,x3,x4)
x=0:0.1:univ;
n=length(x);
a=x1;
b=x2;
c=x3;
d=x4;
A=f_S(univ,x1,x2);
B=f_Z(univ,x3,x4);
for i=1:n

f_PI2(100,20,35,65,80)

if x(i)<=a
D(i)=0;
elseif x(i)>a && x(i)<=b
D(i)=A(i);
elseif x(i)>b && x(i)<=c
D(i)=1;
elseif x(i)>c && x(i)<=d
D(i)=B(i);
elseif x(i)>d
D(i)=0;
end

f_PI2(100,0,45,55,100)

end
plot(x,D);
end

f_PI2(100,30,50,55,100)

R.5
function A=f_gauss3(univ,x1,x2,x3,x4)
x=0:0.1:univ;
n=length(x);
c1=x1;
sig1=x2;
c2=x3;
sig2=x4;
for i=1:n
if x(i)<=c1

f_gauss3(100,50,10,55,10)

y(i)=exp(-0.5*(((x(i)-c1)/sig1)^2));
elseif x(i)>c1 && x(i)<=c2
y(i)=1;
elseif x(i)>c2
y(i)=exp(-0.5*(((x(i)-c2)/sig2)^2));
end
end
plot(x,y)
end

f_gauss3(100,30,45,55,70)

f_gauss3(100,40,45,55,60)

f_gauss3(100,45,15,55,15)

R.6

f_bell(100,25,25,70)

function A=f_bell(univ,x1,x2,x3)
x=0:0.1:univ;
n=length(x);
a=x1;
b=x2;
c=x3;
for i=1:n
y(i)=1 / ( 1 + ( ( abs( ( x(i) - c ) / a ) )^( 2 * b ) ) );
end
plot(x,y)
end

R.7
Demostracin
2
1+|
| 1
1

1
=
2

2
1+|
|
1+|
|

f_bell(100,25,25,50)

Luego, eliminamos el 1 y bajamos el sobrante multiplicando


como una fraccin
1

1
=
2
1+|
|

1
1
2
) (1 + |
| )
2

|
|

Seguidamente, multiplicamos
1

f_bell(100,5,5,50)

1
1
=
2
1

+1
1+|
|
2

|
|

Acomodando los trminos y subiendo el segundo trmino del


denominador del miembro derecho nos queda el resultado
1

1
1
=
2

2
1+|
|
1+|
|

También podría gustarte