Digital System Processing Lab Assignment
Digital System Processing Lab Assignment
1. Read the help les and try out some of the following commands: help, plot, subplot, figure, sin, cos, pi, exp, zeros, ones, size, stem, abs, round, axis, hold on, function, .*, for. 2. Assume that the radius of a Ferris wheel is R (in some units) whose center is situated at the point ( R + H , 0) (we are interested in coordinates in the plane in which the wheel rotates, H is the offset from the ground level). The wheel rotates for T minutes, completing one revolution in P seconds. Determine the formulae for the horizontal and vertical coordinates for the position of a particular point on the rim of the wheel. Find the Nyquist sampling rate f s Hz for these functions. Plot the sequence for x coordinate versus time, y coordinate versus time, and x versus the y coordinate, by assuming values for R, H , T & P and obtained by sampling with rate (a)4 f s Hz (b) f s Hz and (c) fs 3 Hz. 3. Assume there are several smaller Ferris wheels each of radius R1 ( R1 < H and R1 < R) attached to the rim of the original wheel. Refer Figure 1 for a real world example. Each smaller wheel completes a revolution in P1 seconds. Determine the formulae for the horizontal and vertical coordinates for position of a point on the rim of this smaller Ferris wheel. Find the Nyquist sampling rate f s Hz for these functions. Plot the sequence for x coordinate versus time, y coordinate versus time, and x versus the y coordinate, by assuming values for R, H , T , P, R1 & P1 and obtained by f sampling with rate (a)4 f s Hz (b) f s Hz and (c) 3s Hz.
Figure 1: A double Ferris wheel. Image source - www.rollercoastermodels.com 4. Next, assume that there are J nested Ferris wheels. Write a MATLAB function myferris.m that takes in a vector R containing the radii of the J Ferris wheels, a vector P containing the time in seconds it takes to complete a revolution by the corresponding Ferris wheel, total time for which the wheel rotates T and the offset H . The function should automatically compute the Nyquist sampling rate f s Hz. The function should also plot the sequence for x coordinate versus time, y coordinate versus time, and x versus the y coordinate for a point on the rim of the last Ferris f wheel obtained by sampling with rate (a)4 f s Hz (b) f s Hz and (c) 3s Hz.
Instructions
1. Make a report with solutions to all questions except the rst one. The report should be named IDno_lab1.pdf. 1
2. Collect the les: IDno_lab1.pdf and myferris.m in a single zip le named IDno_lab1 and submit by uploading it on courses.daiict.ac.in. 3. Submit only one zip le per group, where a group consists of at most 3 students. Clearly mention names and ID. Nos. of group members in the report and code. Groups will not be allowed to change. You may use ID. No. of any one member of the group in order to name the les.
A 4. Reports written in L TEX will fetch one extra mark.
5. Submissions must be done within 5 days of the lab, i.e., Mondays batch should submit by Friday midnight.