ENGR 1120 – PROGRAMMING FOR ENGINEERS (MATLAB) Homework Program #2 Objectives: Demonstrate knowledge of data files, vector variables, intrinsic functions, subscript manipulation, for loops, and plotting in MATLAB. You have been given a set of ASCII data files that contain directions for laying out patterns in a field. The data files contain in the first column a distance to travel and in the second column a direction heading. Unfortunately, the person who created the data did not have a good understanding of orienteering and the direction headings are given as referenced to a clock face. The pattern begins at the origin of a Cartesian coordinate system with the person facing 12 o’clock, see the figure below. The figure shows an example of the first step in the pattern being a distance of 1.5 feet in the direction of 7 o’clock. All direction headings are given in terms of this clock orientation. The distance values given are in feet. There are 5 data files provided online for testing of the program. Write a script file that will allow the user to input from the keyboard the filename of the file that they wish to analyze. Load only that ONE data file and plot the resulting pattern. Once each point forming the pattern has been located, find and designate on the plot which of the resulting nodes was the farthest away from the origin. Also find and designate the center of the pattern as defined to occur at the coordinate location corresponding to (average x, average y). When plotting the resulting pattern on the Cartesian coordinate system, set the axes limits to appropriate values. HINT: Correlate the direction headings provided in the data files to a Cartesian coordinate system by using the following vector in your script file. This requires subscript manipulation. angle = [60; 30; 0; 330; 300; 270; 240; 210; 180; 150; 120; 90] -2 -1.5 -1 -0.5 0 0.5 1 1.5 2 -2 -1.5 -1 -0.5 0 0.5 1 1.5 2 1 2 3 4 5 6 7 8 9 10 11 12 you are here

## ENGR 1120 – PROGRAMMING FOR ENGINEERS (MATLAB) Homework Program #2 Objectives: Demonstrate knowledge of data files, vector variables, intrinsic functions, subscript manipulation, for loops, and plotting in MATLAB. You have been given a set of ASCII data files that contain directions for laying out patterns in a field. The data files contain in the first column a distance to travel and in the second column a direction heading. Unfortunately, the person who created the data did not have a good understanding of orienteering and the direction headings are given as referenced to a clock face. The pattern begins at the origin of a Cartesian coordinate system with the person facing 12 o’clock, see the figure below. The figure shows an example of the first step in the pattern being a distance of 1.5 feet in the direction of 7 o’clock. All direction headings are given in terms of this clock orientation. The distance values given are in feet. There are 5 data files provided online for testing of the program. Write a script file that will allow the user to input from the keyboard the filename of the file that they wish to analyze. Load only that ONE data file and plot the resulting pattern. Once each point forming the pattern has been located, find and designate on the plot which of the resulting nodes was the farthest away from the origin. Also find and designate the center of the pattern as defined to occur at the coordinate location corresponding to (average x, average y). When plotting the resulting pattern on the Cartesian coordinate system, set the axes limits to appropriate values. HINT: Correlate the direction headings provided in the data files to a Cartesian coordinate system by using the following vector in your script file. This requires subscript manipulation. angle = [60; 30; 0; 330; 300; 270; 240; 210; 180; 150; 120; 90] -2 -1.5 -1 -0.5 0 0.5 1 1.5 2 -2 -1.5 -1 -0.5 0 0.5 1 1.5 2 1 2 3 4 5 6 7 8 9 10 11 12 you are here

info@checkyourstudy.com
EEGR 221 MATLAB Project 1 Basic Signals Fall 2015 Due date: 10/5/15 1. (a) Plot ?1(?) = ?(?+1)−?(?−5) where -7 < t < 7 seconds. Use millisecond units. (b) Plot ? = 5 ??? (??)[ ?(?+1)−?(?−5)] 2. (a) Plot x2(t) exactly as shown in this figure. Include the same titles and labels for the signal. Hint: Find the amplitude equations as function of time and insert those to your MATLAB script to create and plot this signal. (b) Decompose x2(t) into its even and odd components and plot x2e(t) and x2o(t). (c) Plot x2e(t) + x2o(t) and verify that x2e(t) + x2o(t) = x2(t). How to report the results?  For each plot you must label x and y axis and have a title for the plot. Following commands could be used. heaviside, plot, axis, ylabel, ylabel, title, fliplr, etc … At the command prompt of MATLAB you can type >> help [command name] to get help with any command.  Plot all of the signal for t between -7 and 7 seconds.  Save your commands in an m-file with your name in the name field. (e.g. John_Scott.m) and append the code to the end of your report.  Your report must be organized and your solution for each question mu st be clearly marked by the number of the question. Example 2.a or 2.b, … In each part the problem should be clearly identified. Type the problem statement in each section. Show the plots of input and output signals. Draw conclusions based on your plots and in problem 3 discuss why the property is not satisfied based on your plots.  Turn in a hard copy of your report in class. This report must include a cover page with the name of both student partners.

## EEGR 221 MATLAB Project 1 Basic Signals Fall 2015 Due date: 10/5/15 1. (a) Plot ?1(?) = ?(?+1)−?(?−5) where -7 < t < 7 seconds. Use millisecond units. (b) Plot ? = 5 ??? (??)[ ?(?+1)−?(?−5)] 2. (a) Plot x2(t) exactly as shown in this figure. Include the same titles and labels for the signal. Hint: Find the amplitude equations as function of time and insert those to your MATLAB script to create and plot this signal. (b) Decompose x2(t) into its even and odd components and plot x2e(t) and x2o(t). (c) Plot x2e(t) + x2o(t) and verify that x2e(t) + x2o(t) = x2(t). How to report the results?  For each plot you must label x and y axis and have a title for the plot. Following commands could be used. heaviside, plot, axis, ylabel, ylabel, title, fliplr, etc … At the command prompt of MATLAB you can type >> help [command name] to get help with any command.  Plot all of the signal for t between -7 and 7 seconds.  Save your commands in an m-file with your name in the name field. (e.g. John_Scott.m) and append the code to the end of your report.  Your report must be organized and your solution for each question mu st be clearly marked by the number of the question. Example 2.a or 2.b, … In each part the problem should be clearly identified. Type the problem statement in each section. Show the plots of input and output signals. Draw conclusions based on your plots and in problem 3 discuss why the property is not satisfied based on your plots.  Turn in a hard copy of your report in class. This report must include a cover page with the name of both student partners.

info@checkyourstudy.com
Que 1: true of false a) Both silicon and germanium atoms have four valances electrons b) When forward-biased , a diode has a very high resistance c) A zener diode is designed to operate in the forward-bias region and has higher reverse breakdown voltage level than regular diode Write the word or phrase that best completes each statement or answers the questions: d) In semiconductor, in addition to the electron flow, there is also another kind of charge flow referred as………………. e) A silicon diode in placed in series with 2kΩresistor and a 14 V dc power supply. The current ID is: i) 6.65 mA ii) 2.2 mA iii)7.5 mA iv) 14 mA f) The series resistor that limits the forward current length through a silicon diode to 8 mA if the power supply voltage is 9.5V is : i) 1.1 kΩ ii) 2.2 kΩ iii) 9.5 mA iv) 4.7 mA FIGURE g) Determine the diode current IZ for the circuit of figure 1-2: assume VZ = 3.9 V i) 8.1 mA ii) 3.55 mA iii) 24.5 mA iv) 13.64 mA h) Determine the current through a 20 mA yellow LED when the power supply voltage is 15 V the series resistor is 2k ohm and the diode is put in backward. Assume VLED = 2V i) 20 mA ii) 0 mA iii) 10 mA iv) 6.5 mA Write the word or phrase that best completes each statement or answers the questions: i) Zener diode is a p-n junction diode that is desgined for specifc…………………voltage j) ………………………….is the process by which impurity atoms are introduced to the instrisic semiconductor in order to alter the balance between holes and electrons. 1) The average value of s full-wave rectifier with a peak vaue of 17V ia 108V 2) If the frequency of input signal of the full wave reflector is 60Hz, the output frequency is 120Hz 3) The cathode of a zener diode, when conducting is:y i) at 0.7V ii) more positive than anode iii) more negative than anode iv) -0.7V 4) A given transformer with turn ratio 12:1has an input of 115V at 60Hzthe paek output voltage v0 (p) is i) 9.58 V ii) 6.78V iii) 11.5 V iv) 13.55 V FIGURE 2-1 5) The output voltage of V0(DC)for the full wave rectifier of figure 2-1 is i) 18.07 V ii) 12.78 V iii) 8.3 V iv) 5.74 V FIGURE 2-2 6) The voltage V2(P) for the full-wavr bridge rectifier of figure 2-2 is i) 17.37 V ii)1 6.67 V iii) 12.78 V iv) 18.07 V 7) Assume the current I0(DC) in figure is 100mA and C= 2400µF .the ripple voltage vr (p-p) i) 694mV ii) 424 mV iii) 121 V iv) 347 V Use figure 2-3 for questions below: Assume that RS = 75, RL = 160 FIGURE 2-3 8) The output voltage V0 is i) 7.5 V ii) 10 V iii) 8.5 V iv) 12 V Write the word or phrase that best completes each statement or answers the questions: 9) The magnitude of the peak-to-peak ripple voltage vr (p-p) is directly proportional to the output …………………. 10) The ripple voltage at the filter section vr (p-p) can be reduced by increasing the value

## Que 1: true of false a) Both silicon and germanium atoms have four valances electrons b) When forward-biased , a diode has a very high resistance c) A zener diode is designed to operate in the forward-bias region and has higher reverse breakdown voltage level than regular diode Write the word or phrase that best completes each statement or answers the questions: d) In semiconductor, in addition to the electron flow, there is also another kind of charge flow referred as………………. e) A silicon diode in placed in series with 2kΩresistor and a 14 V dc power supply. The current ID is: i) 6.65 mA ii) 2.2 mA iii)7.5 mA iv) 14 mA f) The series resistor that limits the forward current length through a silicon diode to 8 mA if the power supply voltage is 9.5V is : i) 1.1 kΩ ii) 2.2 kΩ iii) 9.5 mA iv) 4.7 mA FIGURE g) Determine the diode current IZ for the circuit of figure 1-2: assume VZ = 3.9 V i) 8.1 mA ii) 3.55 mA iii) 24.5 mA iv) 13.64 mA h) Determine the current through a 20 mA yellow LED when the power supply voltage is 15 V the series resistor is 2k ohm and the diode is put in backward. Assume VLED = 2V i) 20 mA ii) 0 mA iii) 10 mA iv) 6.5 mA Write the word or phrase that best completes each statement or answers the questions: i) Zener diode is a p-n junction diode that is desgined for specifc…………………voltage j) ………………………….is the process by which impurity atoms are introduced to the instrisic semiconductor in order to alter the balance between holes and electrons. 1) The average value of s full-wave rectifier with a peak vaue of 17V ia 108V 2) If the frequency of input signal of the full wave reflector is 60Hz, the output frequency is 120Hz 3) The cathode of a zener diode, when conducting is:y i) at 0.7V ii) more positive than anode iii) more negative than anode iv) -0.7V 4) A given transformer with turn ratio 12:1has an input of 115V at 60Hzthe paek output voltage v0 (p) is i) 9.58 V ii) 6.78V iii) 11.5 V iv) 13.55 V FIGURE 2-1 5) The output voltage of V0(DC)for the full wave rectifier of figure 2-1 is i) 18.07 V ii) 12.78 V iii) 8.3 V iv) 5.74 V FIGURE 2-2 6) The voltage V2(P) for the full-wavr bridge rectifier of figure 2-2 is i) 17.37 V ii)1 6.67 V iii) 12.78 V iv) 18.07 V 7) Assume the current I0(DC) in figure is 100mA and C= 2400µF .the ripple voltage vr (p-p) i) 694mV ii) 424 mV iii) 121 V iv) 347 V Use figure 2-3 for questions below: Assume that RS = 75, RL = 160 FIGURE 2-3 8) The output voltage V0 is i) 7.5 V ii) 10 V iii) 8.5 V iv) 12 V Write the word or phrase that best completes each statement or answers the questions: 9) The magnitude of the peak-to-peak ripple voltage vr (p-p) is directly proportional to the output …………………. 10) The ripple voltage at the filter section vr (p-p) can be reduced by increasing the value

CS 180 Term Project 10% of course grade Due midnight on Dec 8, 2015 The purpose of this project is to implement a general purpose big integer library that can handle common arithmetic operations for big integers. 1. The class should be named WKUBigInt 2. You should support the following (public) methods: a. constructors: WKUBigInt(int value) and WKUBigInt(String value) b. add(WKUBigInt another) c. sub(WKUBigInt another) d. mult(WKUBigInt another) e. toString(), which will return the String representation f. div(WKUBigInt another) for integer divisions g. mod(WKUBigInt another) div and mod are for those students who would like to have more challenges and are not required. Internally, you should use a long array to represent the value of a big integer. Each element in the array is used to represent a chunk of the integer. To make the project more manageable, you are required to have a detailed description on how to implement each method. The descriptions of the methods should be part of the final report. Even though the final report is due at the end, it is expected that you will complete these descriptions before you implement your idea. The final report should have the following sections: 1. Description of each method. The description should be detailed enough to show HOW the implementation can be done.. 2. Discuss what type of testing you have done to ensure the correctness of your implementation. 3. Have a table to count the number of arithmetic operations that are needed for each operation using input data set from the instructor. This also implies additional requirements in your implementation. Submit your source code and a final report in a word document before the due date.

## CS 180 Term Project 10% of course grade Due midnight on Dec 8, 2015 The purpose of this project is to implement a general purpose big integer library that can handle common arithmetic operations for big integers. 1. The class should be named WKUBigInt 2. You should support the following (public) methods: a. constructors: WKUBigInt(int value) and WKUBigInt(String value) b. add(WKUBigInt another) c. sub(WKUBigInt another) d. mult(WKUBigInt another) e. toString(), which will return the String representation f. div(WKUBigInt another) for integer divisions g. mod(WKUBigInt another) div and mod are for those students who would like to have more challenges and are not required. Internally, you should use a long array to represent the value of a big integer. Each element in the array is used to represent a chunk of the integer. To make the project more manageable, you are required to have a detailed description on how to implement each method. The descriptions of the methods should be part of the final report. Even though the final report is due at the end, it is expected that you will complete these descriptions before you implement your idea. The final report should have the following sections: 1. Description of each method. The description should be detailed enough to show HOW the implementation can be done.. 2. Discuss what type of testing you have done to ensure the correctness of your implementation. 3. Have a table to count the number of arithmetic operations that are needed for each operation using input data set from the instructor. This also implies additional requirements in your implementation. Submit your source code and a final report in a word document before the due date.

No expert has answered this question yet. You can browse … Read More...
Linkage analysis: The linkage shown below is the kinematic sketch for the rear suspension of a motorcycle. The dimensions are given in the drawing; consider BC = 2” along the AB direction for the given configuration. For the analysis, assume that the angular velocity of the input link (link 2) is constant and operating in the CW direction (corresponding to the motorcycle going over a bump). a. Calculate the mobility of the linkage. How many loop equations are needed to solve for the dependent joint variables? b. Formulate the loop equations. c. Solve the loop equations and give explicit expressions for the dependent variables as a function of the input angle ?. d. Compute the limits for the input angle ?. Is the linkage going to work as expected? (is the range of motion of ? enough?) e. Write the position vector of point C. Use Maple, GIM or similar software to plot the trajectory of point C over the range of ? calculated in d). f. Use Maple or similar software to plot ? and s as a function of ?. g. Use GIM to create a simulation for the motion of the linkage. Provide a snapshot. h. Compute the velocity vector for point C. Give the value of the velocity for the configuration shown in the kinematic sketch (? = 200o), for an input angular velocity of 200 rpm. i. Compute the velocity s of the slider. Plot this velocity as a function of ? for a constant input angular velocity of 200rpm. j. Plot the acceleration of the slide, s, as a function of ?, for the same constant input angular velocity

## Linkage analysis: The linkage shown below is the kinematic sketch for the rear suspension of a motorcycle. The dimensions are given in the drawing; consider BC = 2” along the AB direction for the given configuration. For the analysis, assume that the angular velocity of the input link (link 2) is constant and operating in the CW direction (corresponding to the motorcycle going over a bump). a. Calculate the mobility of the linkage. How many loop equations are needed to solve for the dependent joint variables? b. Formulate the loop equations. c. Solve the loop equations and give explicit expressions for the dependent variables as a function of the input angle ?. d. Compute the limits for the input angle ?. Is the linkage going to work as expected? (is the range of motion of ? enough?) e. Write the position vector of point C. Use Maple, GIM or similar software to plot the trajectory of point C over the range of ? calculated in d). f. Use Maple or similar software to plot ? and s as a function of ?. g. Use GIM to create a simulation for the motion of the linkage. Provide a snapshot. h. Compute the velocity vector for point C. Give the value of the velocity for the configuration shown in the kinematic sketch (? = 200o), for an input angular velocity of 200 rpm. i. Compute the velocity s of the slider. Plot this velocity as a function of ? for a constant input angular velocity of 200rpm. j. Plot the acceleration of the slide, s, as a function of ?, for the same constant input angular velocity

info@checkyourstudy.com