PRACTICAL MATLAB® FOR ENGINEERS PRACTICAL MATLAB
50 Practical MATLAB® Applications for Engineers wham = hamming(31); whan = hanning(31); wblac = blackman(31); plot(n,wham,’*’,n, ...
Time Domain Representation of Continuous and Discrete Signals 51 wk10 = kaiser(31,10); plot(n,wk3,’*’,n,wk7,’d’,n,wk10,’o’); hol ...
52 Practical MATLAB® Applications for Engineers wtri = triang(31); wrect = boxcar(31); wbart = bartlett(31); plot (n,wtri,’*’,n, ...
Time Domain Representation of Continuous and Discrete Signals 53 MATLAB Solution % Script file: signal _ noise n = 1:128; P =2.7 ...
54 Practical MATLAB® Applications for Engineers R.1.162 Sound waves can be represented by 1-D vectors while 2-D matrices can be ...
Time Domain Representation of Continuous and Discrete Signals 55 MATLAB Solution % Script file: audio subplot(2,1,1) fo = 1000; ...
56 Practical MATLAB® Applications for Engineers R.1.169 For example, the color image of the magic(10) matrix is processed and di ...
Time Domain Representation of Continuous and Discrete Signals 57 in a (for-end) loop, to assemble an array of movie frames, spac ...
58 Practical MATLAB® Applications for Engineers 1.4 Examples Example 1.1 Create the script fi le disc_func that returns the plot ...
Time Domain Representation of Continuous and Discrete Signals 59 MATLAB Solution % Script file: analog _ func t = -1:0.01:5; t0 ...
60 Practical MATLAB® Applications for Engineers urev = fliplr(un);n1 = -5; un _ 5 = stepfun(n, n1); fn1=3*(urev .* un _ 5); subp ...
Time Domain Representation of Continuous and Discrete Signals 61 MATLAB Solution % Script file: graphs t = -5:.01:5; t0 = 0; u = ...
62 Practical MATLAB® Applications for Engineers MATLAB Solution % Script file: disc _ square _ triang n = 0:0.1:4; N = 2; f1 = 3 ...
Time Domain Representation of Continuous and Discrete Signals 63 subplot(2,2,1); stem (n, real(fn)); hold on; plot(n,yzero); tit ...
64 Practical MATLAB® Applications for Engineers Example 1.7 Create the script fi le analog_plots that returns the plot of each o ...
Time Domain Representation of Continuous and Discrete Signals 65 figure(2); ut35 = stepfun(t, 2) - stepfun(t, 3); f5 = f2.*ut35; ...
66 Practical MATLAB® Applications for Engineers Example 1.8 Let f(n) be given by fn nn n nn () 00 2 10 1 12 and ...
Time Domain Representation of Continuous and Discrete Signals 67 axis([-1 5 -.2 4.3]); subplot(2,2,3); f3=-1.*fn; % creates -f(n ...
68 Practical MATLAB® Applications for Engineers Example 1.9 Given the following analog transfer function: Hs sss sssss () ...
Time Domain Representation of Continuous and Discrete Signals 69 Example 1.10 Create the script fi le period_seq that returns th ...
«
1
2
3
4
5
6
7
8
9
10
»
Free download pdf