rec01_vishp21_HW05

Rec01_vishp21_HW05 - function2=sin(t_2/6%The actual function subplot(1,3,2%gives the placement of the function stem(t_2,function2%plots the

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
%% Vishal Patel Recitation 01 RUID 132009258 %% Problem 3 % m=1:10; %This is the mass going from 1-10, steps of 1. Benzene=78.115; %Molar Weight of Benzene. EthylAlcohol=46.07; %Molar Weight of Ethyl Alcohol. RefrigentR134a=102.3; %Molar Weight of Refrigent R134a. nmoles(m,Benzene) %Gets the number of moles for Benzene. nmoles(m,EthylAlcohol) %Gets the number of moles for Ethyl Alcohol. nmoles(m,RefrigentR134a) %Gets the number of moles for Refrigent R134a. . %% Problem 4 % t=0:2:60; %Time line from 0-60 in steps of 2. function1=sin(t/6); %The actual function. subplot(1,3,1); %gives the placement of the function. stem(t,function1) %plots the function with circles at the data values. xlabel('Time');%Labels the x-axis. ylabel('Sine Wave 1'); %Labels the y-axis. title('Sine Wave 1 vs. Time') %Titles the plot. t t_2=0:2:60; %Time line of 0-60 in steps of 2.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: function2=sin(t_2./6); %The actual function. subplot(1,3,2); %gives the placement of the function. stem(t_2,function2) %plots the function. xlabel('Time'); %Labels the x-axis. ylabel('Sine Wave 2'); %Labels the y-axis. title('Sine Wave 2 vs. Time') %Titles the plot. t t_3=0:10:60; %Time line of 0-60 in steps of 10. function3=sin(t_3./6); %The actual function. subplot(1,3,3); %gives the placement of the function. stem(t_3,function3) %plots the function. xlabel('Time'); %Labels the x-axis. ylabel('Sine Wave 3'); %Labels the y-axis. title('Sine wave 3 vs. Time') %Titles the plot. t %The importance of good sampling is that a bandlimited signal can be %reconstructed exactly if it is sampled at a rate atleast twice the maximum %frequency component in it....
View Full Document

This note was uploaded on 03/24/2011 for the course PROGRAMMIN 127 taught by Professor Brenda during the Fall '10 term at Rutgers.

Ask a homework question - tutors are online