Escolar Documentos
Profissional Documentos
Cultura Documentos
>> f2=0:0.2:40;
>> A=10;
>> A2=30;
>> s1=A*sin(f1);
>> s2=A2*cos(f2);
>> subplot(3,1,1);
>> plot(s1,'r');
>> ylabel('Amp');
>> xlabel('frecuencia');
>> subplot(3,1,3);
>> plot(s2,'g');
>> ylabel('Amp');
>> xlabel('frecuencia');
>> figure
>> subplot(3,1,1);
>> stem(s1,'r','fill');
>> ylabel('Amp');
>> xlabel('frecuencia');
>> subplot(3,1,3);
>> stem(s2,'g','fill');
>> xlabel('frecuencia');
>> l1=length(s1);
>> l2=length(s2);
sig(1,i)=s1(i);
sig(2,1)=s2(i);
end
>> tdmsig=reshape(sig,1,2*11);
>> figure
>> stem(tdmsig,'r','fill');
>> ylabel('Amp');
>> xlabel('Tiempo');
>>
>>