Question: Matlab code The following data will be used in this question set. Component Holtz100 Lever014 Dillard202 Voltage (V) M 7 142 20 260 285 10
The following data will be used in this question set. Component Holtz100 Lever014 Dillard202 Voltage (V) M 7 142 20 260 285 10 165 23 12 180 25 15 212 30 428 128 Current (1) [mA] 18 3338 368 Part A: Create the variable Comp as a cell array, containing the component names shown in Column 1. Part B: Create the variable CurData as a single matrik containing the information shown in Columns 3-7. The the voltage in units of volts and the subsequent rows are the current corresponding to their respective components in of milliamperes. For the Part C: Ask.the user to choose a material from a menu created using the names stored in Choice remaining Select a Component Name questions, Note: NO credit will be awarded for hard-coding values. This statement should work correctly regardless of the values stored in Comp. assume the user Holtz 100 Holtz100" from the menu for the sample output. Lever014 You may assume for all remaining questions that the user will select one of the buttons, and not just close the menu. Part D: Display for the user the choice of voltages given in row 1 of CurData in a menu. Note there is one tab between numerical values Note: NO credit will be awarded for hard-coding values. This statement should work correctly regardless of the values stored in the first row of CurData Store the user response in Volt You may assume for all remaining questions that the user will select one of the buttons, and not just close the menu
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
