Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PART A: The following two equations describe the voltage (V) and power (P) as a function of Current (1) across a resistor (R): V =

image text in transcribed

PART A: The following two equations describe the voltage (V) and power (P) as a function of Current (1) across a resistor (R): V = IR P=12R Create a MATLAB program to plot these two equations on the same graph. The program should have the user input the resistance (Ohms) and maximum current (amps). The maximum current should be used to create a 1D array of current values starting at zero and going to the maximum current. Make sure your plot includes the following: Separate Y axes for the Voltage and the Power Different line colors and types for each variable plotted A title, axes labels, legend and grid Use the MATLAB help tools to investigate the various commands for plot annotation as well as the command used to setup a plot with two y-axes. When the program is complete, test it with the following input values: Resistance = 75 and Maximum Current = 6. When completed, copy and paste the plot into a Word document and save it as: HW5p2_Taskl_TEAMXXX_6+2.docx Save your script file with the following file name: HW5p2_Taskl_TEAMXXX_6+2.m PART B: Using the same program file (HW5p2_Taskl_TEAMXXX_6+2.m) and values from Part A, lude a second figure which includes a subplot with three rows and one column. The three plots shown should contain the following information: Subplot 1: Voltage versus Current Subplot 2: Power versus Current Subplot 3: Voltage and Power versus Current on same plot (Same as Part A) When this part of the program is complete, run it using the previously entered values for Resistance and Maximum Current, then copy and paste the 3 x 1 subplot into the same word document from Part A: HW5p2_Taskl _TEAMXXX_6+2.doc

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Richard T. Watson

6th Edition

1943153035, 978-1943153039

More Books

Students also viewed these Databases questions

Question

What did they do? What did they say?

Answered: 1 week ago