Answered step by step
Verified Expert Solution
Question
1 Approved Answer
for matlab Download the file VI.mat and use the load command to add the variables stored there to your workspace. The variables contain the information
for matlab
Download the file VI.mat and use the load command to add the variables stored there to your workspace. The variables contain the information shown in the following table, organ- ized as described. Component Voltage (V) M5 128 142 Holtz100 Lever014 Current () [mA] 18 20 Dillard202 30 428 368 260 285 The three component names are stored in the single-row cell array Name. The 4 5 matrix CurData contains the numeric values in columns three through seven of the preceding table. Ask the user to choose a component from a menu creat- ed using the names stored in Name. You may assume the user Select a Component Name will choose a button and not close the menu. Holtz 100 Calculate the power in units of watts [W] for all voltages for the component chosen by the user from the menu. Store Lever014 the resulting vector in Power Recall that power (P) is determined by Dilard202 where: V is the voltage in units of volts [V]. given in row 1 of the matrix CurData l is the current in units of amperes (A].given in the row of the matrix CurData correspond ing to the chosen component. Be sure to note that the currents in CurData are given in mA. Display for the user the choice of voltages given in row 1 of CurData. Note there is one tab between the numerical values. See example. Voltage Choices: Ask the user to enter a voltage value from the list shown. Store the scalar input as Vol t You can assume users will enter a value from the list of values given and that they will Print a report similar to the following in the Command Window not enter a number that is not shown. Component Holtz100 Voltage10 V Current 0.165 A Power 1.65 W Next, the user will augment the data tables before performing another calculation. Ask the user to type the name of the new component. Place the text string response in a new column of Name at the end of the cell arrav, such that the cell array will now have one more column than the original arrayStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started