Sacar Copias

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

clc;

clear;
A=input('ingrese vector A');
B=input('ingrese vector B ');
C=[];
D=[];
c=1;
d=1;
numcoluma=size(A,2);
numcolumb=size(B,2);
if numcoluma~=numcolumb
disp('error');
els
for i=1:(numcoluma/2)
if A(i)==B(i)|| A(i)~=B(i);
C(c)=A(i)+B(i);
c=c+1;
end
end
for i=(numcolumb/2)+1:numcolumb
if A(i)==B(i)|| A(i)~=B(i);
D(d)=B(i)+A(i);
d=d+1;
end
end
end

You might also like