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.

Fall Semester 2015 NMSU Econ 252, Instructor: Dr. Larry Blank Writing Assignment and Critical Thinking Problems: This assignment is worth 100 points toward your overall course average. The criteria used to grade this assignment includes the professional appearance of the document you submit, your ability to use the principles of supply and demand to critically assess the impacts, and your ability to explain your conclusions in writing. Each part can be answered in one page or less. Assigned: October 5, 2015 Deadline: Friday, October 16, 2015 You will email your assignment in Canvas. Before you email your assignment, make sure your name is on your paper AND your full name is included in the electronic file name. For example, filename: Jose Sanchez_Econ252_paper.doc I will not read your work if your name is not in the electronic filename. Assignment: Answers to all parts shall be completed in a Microsoft Word document. Begin by copying the Scenario below and then, for each part, copy the problem before completing your answer. You may want to draw your diagrams in Microsoft PowerPoint or other software and then copy and paste the diagram into the Word document as a “Picture (Enhanced Metafile)” using the “Paste Special” feature in Word. The document you turn in should be six (6) pages long. For the first page include a short title for this assignment, the course name and number, your name, and then copy and paste everything below beginning with “Scenario” onto your first page. The 2nd page of your document should include the description of Part 1 and then your diagram and answer. Do the same for Parts 2-5, with each part on a separate page. Scenario: The Federal Government implemented a policy some years ago to subsidize the production of ethanol fuel at 46 cents per gallon. See news article here: http://usnews.nbcnews.com/_news/2011/12/29/9804028-6-billion-a-year-ethanol-subsidy-dies-but-wait-theres-more?lite Ethanol is an alternative fuel (a substitute for regular gasoline) that can be used in some models of automobiles designed to burn any mix of gasoline up to 85% ethanol (fuel is known as E85, and auto manufacturers label these vehicles as “FlexFuel” and similar names). A primary input in the production of ethanol is corn. For the purposes of this assignment, assume that all relevant markets are perfectly competitive. Part 1: Show geometrically using the supply and demand curves the impact the subsidy had in the ethanol market (hint: the result has been a reduction in the market price of ethanol). Fully explain the impact of the production subsidy in terms of the behavior of producers (sellers) in the market and customers (buyers) in the market and what has happened to equilibrium price and quantity in the market for ethanol. Part 2: Show geometrically using the supply and demand curves what impact the reduction in market price for ethanol had in the market for regular gasoline. Fully explain the impact this reduced ethanol price had on the customer demand for regular gasoline. Part 3: Show geometrically using the supply and demand curves the impact due to the change in the equilibrium quantity in the market for ethanol had in the market for corn. Fully explain the impact and the resulting equilibrium price and quantity for corn. Part 4: Show geometrically using the supply and demand curves what impact the change in the market price of corn had in the market for manufactured corn tortillas (assume that the market for corn tortillas is perfectly competitive). Corn tortillas are a staple food item in the diets of millions of families across the U.S.. Fully explain the impact of change in the market price of corn in terms of the behavior of producers (sellers) in the market and customers (buyers) in the corn tortilla market. Part 5: Show geometrically using the supply and demand curves the impact in the ethanol market when the ethanol subsidy ended on Jan. 1, 2012. Give one possible explanation why I can no longer find E85 fuel at gas stations. Hint: When the subsidy still existed, the market price of E85 was about 30 cents a gallon less than regular gasoline. E85 is not a perfect substitute for regular gasoline because the performance is less and gas mileage drops by 5-7 miles per gallon.

Fall Semester 2015 NMSU Econ 252, Instructor: Dr. Larry Blank Writing Assignment and Critical Thinking Problems: This assignment is worth 100 points toward your overall course average. The criteria used to grade this assignment includes the professional appearance of the document you submit, your ability to use the principles of supply and demand to critically assess the impacts, and your ability to explain your conclusions in writing. Each part can be answered in one page or less. Assigned: October 5, 2015 Deadline: Friday, October 16, 2015 You will email your assignment in Canvas. Before you email your assignment, make sure your name is on your paper AND your full name is included in the electronic file name. For example, filename: Jose Sanchez_Econ252_paper.doc I will not read your work if your name is not in the electronic filename. Assignment: Answers to all parts shall be completed in a Microsoft Word document. Begin by copying the Scenario below and then, for each part, copy the problem before completing your answer. You may want to draw your diagrams in Microsoft PowerPoint or other software and then copy and paste the diagram into the Word document as a “Picture (Enhanced Metafile)” using the “Paste Special” feature in Word. The document you turn in should be six (6) pages long. For the first page include a short title for this assignment, the course name and number, your name, and then copy and paste everything below beginning with “Scenario” onto your first page. The 2nd page of your document should include the description of Part 1 and then your diagram and answer. Do the same for Parts 2-5, with each part on a separate page. Scenario: The Federal Government implemented a policy some years ago to subsidize the production of ethanol fuel at 46 cents per gallon. See news article here: http://usnews.nbcnews.com/_news/2011/12/29/9804028-6-billion-a-year-ethanol-subsidy-dies-but-wait-theres-more?lite Ethanol is an alternative fuel (a substitute for regular gasoline) that can be used in some models of automobiles designed to burn any mix of gasoline up to 85% ethanol (fuel is known as E85, and auto manufacturers label these vehicles as “FlexFuel” and similar names). A primary input in the production of ethanol is corn. For the purposes of this assignment, assume that all relevant markets are perfectly competitive. Part 1: Show geometrically using the supply and demand curves the impact the subsidy had in the ethanol market (hint: the result has been a reduction in the market price of ethanol). Fully explain the impact of the production subsidy in terms of the behavior of producers (sellers) in the market and customers (buyers) in the market and what has happened to equilibrium price and quantity in the market for ethanol. Part 2: Show geometrically using the supply and demand curves what impact the reduction in market price for ethanol had in the market for regular gasoline. Fully explain the impact this reduced ethanol price had on the customer demand for regular gasoline. Part 3: Show geometrically using the supply and demand curves the impact due to the change in the equilibrium quantity in the market for ethanol had in the market for corn. Fully explain the impact and the resulting equilibrium price and quantity for corn. Part 4: Show geometrically using the supply and demand curves what impact the change in the market price of corn had in the market for manufactured corn tortillas (assume that the market for corn tortillas is perfectly competitive). Corn tortillas are a staple food item in the diets of millions of families across the U.S.. Fully explain the impact of change in the market price of corn in terms of the behavior of producers (sellers) in the market and customers (buyers) in the corn tortilla market. Part 5: Show geometrically using the supply and demand curves the impact in the ethanol market when the ethanol subsidy ended on Jan. 1, 2012. Give one possible explanation why I can no longer find E85 fuel at gas stations. Hint: When the subsidy still existed, the market price of E85 was about 30 cents a gallon less than regular gasoline. E85 is not a perfect substitute for regular gasoline because the performance is less and gas mileage drops by 5-7 miles per gallon.

1 Laboratory 3 – Sinusoids in Engineering: Measurement and Analysis of Harmonic Signals 3.1 Laboratory Objective The objective of this laboratory is to understand the basic properties of sinusoids and sinusoid measurements. 3.2 Educational Objectives After performing this experiment, students should be able to: 1. Understand the properties of sinusoids. 2. Understand sinusoidal manipulation 3. Use a function generator 4. Obtain measurements using an oscilloscope 3.3 Background Sinusoids are sine or cosine waveforms that can describe many engineering phenomena. Any oscillatory motion can be described using sinusoids. Many types of electrical signals such as square, triangle, and sawtooth waves are modeled using sinusoids. Their manipulation incurs the understanding of certain quantities that describe sinusoidal behavior. These quantities are described below. 3.3.1 Sinusoid Characteristics Amplitude The amplitude A of a sine wave describes the height of the hills and valleys of a sinusoid. It carries the physical units of what the sinusoid is describing (volts, amps, meters, etc.). Frequency There are two types of frequencies that can describe a sinusoid. The normal frequency f is how many times the sinusoid repeats per unit time. It has units of cycles per second (s-1) or Hertz (Hz). The angular frequency ω is how many radians pass per second. Consequently, ω has units of radians per second. Laboratory 3 – Sinusoids in Engineering: Measurement and Analysis of Harmonic Signals 2 Period The period T is how long a sinusoid takes to repeat one complete cycle. The period is measured in seconds. Phase The phase φ of a sinusoid causes a horizontal shift along the t-axis. The phase has units of radians. TimeShift The time shift ts of a sinusoid is a horizontal shift along the t-axis and is a time measurement of the phase. The time shift has units of seconds. NOTE: A sine wave and a cosine wave only differ by a phase shift of 90° or ?2 radians. In reality, they are the same waveform but with a different φ value. 3.3.2 Sinusoidal Relationships Figure 3.1: Sinusoid The general equation of a sinusoid is given below and refers to Figure 3.1. ?(?) = ????(?? +?) (3.1) The angular frequency is related to the normal frequency by Equation 3.2. ?= 2?? (3.2) The angular frequency is also related to the period by Equation 3.3. ?=2?? (3.3) By inspection, the normal frequency is related to the period by Equation 3.4. ? =1? (3.4) ?? Laboratory 3 – Sinusoids in Engineering: Measurement and Analysis of Harmonic Signals 3 The time shift is related to the phase (radians) and the frequency by Equation 3.5. ??= ∅2?? (3.5) 3.3.3 Equipment 3.3.3.1 Inductors Inductors are electrical components that resist a change in the flow of current passing through them. They are essentially coils of wire. Inductors are electromagnets too. They are represented in schematics using the following symbol and physically using the following equipment (with or without exposed wire): Figure 3.2: Symbol and Physical Example for Inductors 3.3.3.2 Capacitors Capacitors are electrical components that store energy. This enables engineers to store electrical energy from an input source such as a battery. Some capacitors are polarized and therefore have a negative and positive plate. One plate is straight, representing the positive terminal on the device, and the other is curved, representing the negative one. Polarized capacitors are represented in schematics using the following symbol and physically using the following equipment: Figure 3.3: Symbol and Physical Example for Capacitors 3.3.3.3 Function Generator A function generator is used to create different types of electrical waveforms over a wide range of frequencies. It generates standard sine, square, and triangle waveforms and uses the analog output channel. 3.3.3.5 Oscilloscope An oscilloscope is a type of electronic test instrument that allows observation of constantly varying voltages, usually as a two-dimensional plot of one or more signals as a function of time. It displays voltage data over time for the analysis of one or two voltage measurements taken from the analog input channels of the Oscilloscope. The observed waveform can be analyzed for amplitude, frequency, time interval and more. Laboratory 3 – Sinusoids in Engineering: Measurement and Analysis of Harmonic Signals 4 3.4 Procedure Follow the steps outlined below after the instructor has explained how to use the laboratory equipment 3.4.1 Sinusoidal Measurements 1. Connect the output channel of the Function Generator to the channel one of the Oscilloscope. 2. Complete Table 3.1 using the given values for voltage and frequency. Table 3.1: Sinusoid Measurements Function Generator Oscilloscope (Measured) Calculated Voltage Amplitude, A (V ) Frequency (Hz) 2*A (Vp−p ) f (Hz) T (sec) ω (rad/sec) T (sec) 2.5 1000 3 5000 3.4.2 Circuit Measurements 1. Connect the circuit in figure 3.4 below with the given resistor and capacitor NOTE: Vs from the circuit comes from the Function Generator using a BNC connector. Figure 3.4: RC Circuit Laboratory 3 – Sinusoids in Engineering: Measurement and Analysis of Harmonic Signals 5 2. Using the alligator to BNC cables, connect channel one of the Oscilloscope across the capacitor and complete Table 3.2 Table 3.2: Capacitor Sinusoid Function Generator Oscilloscope (Measured) Calculated Vs (Volts) Frequency (Hz) Vc (volts) f (Hz) T (sec) ω (rad/sec) 2.5 100 3. Disconnect channel one and connect channel two of the oscilloscope across the resistor and complete table 3.3. Table 3.3: Resistor Sinusoid Function Generator Oscilloscope (Measured) Calculated Vs (Volts) Frequency (Hz) VR (volts) f (Hz) T (sec) ω (rad/sec) 2.5 100 4. Leaving channel two connected across the resistor, clip the positive lead to the positive side of the capacitor and complete table 3.4 Table 3.4: Phase Difference Function Generator Oscilloscope (Measured) Calculated Vs (volts) Frequency (Hz) Divisions Time/Div (sec) ts (sec) ɸ (rad) ɸ (degrees) 2.5 100 5. Using the data from Tables 3.2, 3.3, and 3.4, plot the capacitor sinusoidal equation and the resistor sinusoidal equation on the same graph using MATLAB. HINT: Plot over one period. 6. Kirchoff’s Voltage Law states that ??(?)=??(?)+??(?). Calculate Vs by hand using the following equation and Tables 3.2 and 3.3 ??(?)=√??2+??2???(??−???−1(????)) Laboratory 3 – Sinusoids in Engineering: Measurement and Analysis of Harmonic Signals 6 3.5 New MATLAB Commands hold on  This command allows multiple graphs to be placed on the same XY axis and is placed after the first plot statement. legend (’string 1’, ’string2’, ‘string3’)  This command adds a legend to the plot. Strings must be placed in the order as the plots were generated. plot (x, y, ‘line specifiers’)  This command plots the data and uses line specifiers to differentiate between different plots on the same XY axis. In this lab, only use different line styles from the table below. Table 3.5: Line specifiers for the plot() command sqrt(X)  This command produces the square root of the elements of X. NOTE: The “help” command in MATLAB can be used to find a description and example for functions such as input.  For example, type “help input” in the command window to learn more about the input function. NOTE: Refer to section the “MATLAB Commands” sections from prior labs for previously discussed material that you may also need in order to complete this assignment. Laboratory 3 – Sinusoids in Engineering: Measurement and Analysis of Harmonic Signals 7 3.6 Lab Report Requirements 1. Complete Tables 3.1, 3.2, 3.3, 3.4 (5 points each) 2. Show hand calculations for all four tables. Insert after this page (5 points each) 3. Draw the two sinusoids by hand from table 3.1. Label amplitude, period, and phase. Insert after this page. (5 points) 4. Insert MATLAB plot of Vc and VR as obtained from data in Tables 3.2 and 3.3 after this page. (5 points each) 5. Show hand calculations for Vs(t). Insert after this page. (5 points) 6. Using the data from the Tables, write: (10 points) a) Vc(t) = b) VR(t) = 7. Also, ???(?)=2.5???(628?). Write your Vs below and give reasons why they are different. (10 points) a) Vs(t) = b) Reasons: 8. Write an executive summary for this lab describing what you have done, and learned. (20 points)

1 Laboratory 3 – Sinusoids in Engineering: Measurement and Analysis of Harmonic Signals 3.1 Laboratory Objective The objective of this laboratory is to understand the basic properties of sinusoids and sinusoid measurements. 3.2 Educational Objectives After performing this experiment, students should be able to: 1. Understand the properties of sinusoids. 2. Understand sinusoidal manipulation 3. Use a function generator 4. Obtain measurements using an oscilloscope 3.3 Background Sinusoids are sine or cosine waveforms that can describe many engineering phenomena. Any oscillatory motion can be described using sinusoids. Many types of electrical signals such as square, triangle, and sawtooth waves are modeled using sinusoids. Their manipulation incurs the understanding of certain quantities that describe sinusoidal behavior. These quantities are described below. 3.3.1 Sinusoid Characteristics Amplitude The amplitude A of a sine wave describes the height of the hills and valleys of a sinusoid. It carries the physical units of what the sinusoid is describing (volts, amps, meters, etc.). Frequency There are two types of frequencies that can describe a sinusoid. The normal frequency f is how many times the sinusoid repeats per unit time. It has units of cycles per second (s-1) or Hertz (Hz). The angular frequency ω is how many radians pass per second. Consequently, ω has units of radians per second. Laboratory 3 – Sinusoids in Engineering: Measurement and Analysis of Harmonic Signals 2 Period The period T is how long a sinusoid takes to repeat one complete cycle. The period is measured in seconds. Phase The phase φ of a sinusoid causes a horizontal shift along the t-axis. The phase has units of radians. TimeShift The time shift ts of a sinusoid is a horizontal shift along the t-axis and is a time measurement of the phase. The time shift has units of seconds. NOTE: A sine wave and a cosine wave only differ by a phase shift of 90° or ?2 radians. In reality, they are the same waveform but with a different φ value. 3.3.2 Sinusoidal Relationships Figure 3.1: Sinusoid The general equation of a sinusoid is given below and refers to Figure 3.1. ?(?) = ????(?? +?) (3.1) The angular frequency is related to the normal frequency by Equation 3.2. ?= 2?? (3.2) The angular frequency is also related to the period by Equation 3.3. ?=2?? (3.3) By inspection, the normal frequency is related to the period by Equation 3.4. ? =1? (3.4) ?? Laboratory 3 – Sinusoids in Engineering: Measurement and Analysis of Harmonic Signals 3 The time shift is related to the phase (radians) and the frequency by Equation 3.5. ??= ∅2?? (3.5) 3.3.3 Equipment 3.3.3.1 Inductors Inductors are electrical components that resist a change in the flow of current passing through them. They are essentially coils of wire. Inductors are electromagnets too. They are represented in schematics using the following symbol and physically using the following equipment (with or without exposed wire): Figure 3.2: Symbol and Physical Example for Inductors 3.3.3.2 Capacitors Capacitors are electrical components that store energy. This enables engineers to store electrical energy from an input source such as a battery. Some capacitors are polarized and therefore have a negative and positive plate. One plate is straight, representing the positive terminal on the device, and the other is curved, representing the negative one. Polarized capacitors are represented in schematics using the following symbol and physically using the following equipment: Figure 3.3: Symbol and Physical Example for Capacitors 3.3.3.3 Function Generator A function generator is used to create different types of electrical waveforms over a wide range of frequencies. It generates standard sine, square, and triangle waveforms and uses the analog output channel. 3.3.3.5 Oscilloscope An oscilloscope is a type of electronic test instrument that allows observation of constantly varying voltages, usually as a two-dimensional plot of one or more signals as a function of time. It displays voltage data over time for the analysis of one or two voltage measurements taken from the analog input channels of the Oscilloscope. The observed waveform can be analyzed for amplitude, frequency, time interval and more. Laboratory 3 – Sinusoids in Engineering: Measurement and Analysis of Harmonic Signals 4 3.4 Procedure Follow the steps outlined below after the instructor has explained how to use the laboratory equipment 3.4.1 Sinusoidal Measurements 1. Connect the output channel of the Function Generator to the channel one of the Oscilloscope. 2. Complete Table 3.1 using the given values for voltage and frequency. Table 3.1: Sinusoid Measurements Function Generator Oscilloscope (Measured) Calculated Voltage Amplitude, A (V ) Frequency (Hz) 2*A (Vp−p ) f (Hz) T (sec) ω (rad/sec) T (sec) 2.5 1000 3 5000 3.4.2 Circuit Measurements 1. Connect the circuit in figure 3.4 below with the given resistor and capacitor NOTE: Vs from the circuit comes from the Function Generator using a BNC connector. Figure 3.4: RC Circuit Laboratory 3 – Sinusoids in Engineering: Measurement and Analysis of Harmonic Signals 5 2. Using the alligator to BNC cables, connect channel one of the Oscilloscope across the capacitor and complete Table 3.2 Table 3.2: Capacitor Sinusoid Function Generator Oscilloscope (Measured) Calculated Vs (Volts) Frequency (Hz) Vc (volts) f (Hz) T (sec) ω (rad/sec) 2.5 100 3. Disconnect channel one and connect channel two of the oscilloscope across the resistor and complete table 3.3. Table 3.3: Resistor Sinusoid Function Generator Oscilloscope (Measured) Calculated Vs (Volts) Frequency (Hz) VR (volts) f (Hz) T (sec) ω (rad/sec) 2.5 100 4. Leaving channel two connected across the resistor, clip the positive lead to the positive side of the capacitor and complete table 3.4 Table 3.4: Phase Difference Function Generator Oscilloscope (Measured) Calculated Vs (volts) Frequency (Hz) Divisions Time/Div (sec) ts (sec) ɸ (rad) ɸ (degrees) 2.5 100 5. Using the data from Tables 3.2, 3.3, and 3.4, plot the capacitor sinusoidal equation and the resistor sinusoidal equation on the same graph using MATLAB. HINT: Plot over one period. 6. Kirchoff’s Voltage Law states that ??(?)=??(?)+??(?). Calculate Vs by hand using the following equation and Tables 3.2 and 3.3 ??(?)=√??2+??2???(??−???−1(????)) Laboratory 3 – Sinusoids in Engineering: Measurement and Analysis of Harmonic Signals 6 3.5 New MATLAB Commands hold on  This command allows multiple graphs to be placed on the same XY axis and is placed after the first plot statement. legend (’string 1’, ’string2’, ‘string3’)  This command adds a legend to the plot. Strings must be placed in the order as the plots were generated. plot (x, y, ‘line specifiers’)  This command plots the data and uses line specifiers to differentiate between different plots on the same XY axis. In this lab, only use different line styles from the table below. Table 3.5: Line specifiers for the plot() command sqrt(X)  This command produces the square root of the elements of X. NOTE: The “help” command in MATLAB can be used to find a description and example for functions such as input.  For example, type “help input” in the command window to learn more about the input function. NOTE: Refer to section the “MATLAB Commands” sections from prior labs for previously discussed material that you may also need in order to complete this assignment. Laboratory 3 – Sinusoids in Engineering: Measurement and Analysis of Harmonic Signals 7 3.6 Lab Report Requirements 1. Complete Tables 3.1, 3.2, 3.3, 3.4 (5 points each) 2. Show hand calculations for all four tables. Insert after this page (5 points each) 3. Draw the two sinusoids by hand from table 3.1. Label amplitude, period, and phase. Insert after this page. (5 points) 4. Insert MATLAB plot of Vc and VR as obtained from data in Tables 3.2 and 3.3 after this page. (5 points each) 5. Show hand calculations for Vs(t). Insert after this page. (5 points) 6. Using the data from the Tables, write: (10 points) a) Vc(t) = b) VR(t) = 7. Also, ???(?)=2.5???(628?). Write your Vs below and give reasons why they are different. (10 points) a) Vs(t) = b) Reasons: 8. Write an executive summary for this lab describing what you have done, and learned. (20 points)

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