Professional Documents
Culture Documents
x=linspace(-1,3,1000);
y=(sqrt(3-x)./(x-3)).*((0<=x)&(x<3)) + (sqrt(1+x)./
(x-3)).*((-1<=x)&(x<0));
plot(x,y);
grid on;
title('Funcion ejercicio 31');
Código:
function [x] = tib(n)
%UNTITLED2 Summary of this function goes here
% Detailed explanation goes here
x(1) = 1;
x(2) = 2;
for k=3:n
x(k)=2*x(k-1)+x(k-2);
end
end
x=[2 4 3 6 7 2 8]
x=
2 4 3 6 7 2 8
>> caninpares(x)
ans =
2
POLIGONO DE 5 LADOS:
Código:
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State,
varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT
set(handles.Ang5,'string',angulo);
longitud=num2str(d);
set(handles.Long5,'string',longitud);