Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Questions 9 - 11 share the same information and variables. Any variable created in one question can be used to answer a later question. Choose

image text in transcribed

Questions 9 - 11 share the same information and variables. Any variable created in one question can be used to answer a later question. Choose one for user to enter 9. You are writing code designed to ask a user to choose the classification of MATLAB variable they wish to enter from a list dialog box. They may only select one option An example is shown to the right. The choices are stored as character arrays in the cell array Type. Write the code to create this dialog box. Iscolar character array vector 10. You can assume the user will select a variable type and not close the dialog box After the selection is made, the user will be given a message prompting them to enter the appropriate variable type. The prompt message must be the phrase *Please enter a XXX: " where XXX is the variable type selected by the user. For example, if the user chooses "scalar," then the following prompt would appear: Please enter a scalar: I OK Write the code to create the correct prompt wording for the selection made and save the entire prompt as a character array named Prompt. 11. Complete the code provided on the answer sheet that issues the prompt to the user, using the wording previously created and stored in Prompt. The user should be able to enter data of the type selected. 12.A (1 x 2) cell array named Selection is to be written back into the worksheet "Parts 2017.xlsx" on sheet "Summary". Chose the correct line of code to do this. There is a header in row one of the sheet and the values should go below the headers Circle the corresponding letter on the answer sheet. A writecell('Parts2017.xlsx', Selection, 'Sheet', 'Summary', 'Range', '42'); B. ['Parts2017.xlsx') #writecell (Selection, 'Summary', '12'); C. save( 'Parts2017.xlsx', Selection, 'Summary'); D. writecell (Selection, 'Parts2017.xlsx', 'Sheet', 'Summary', 'Range', '42'); E writecell('Parts2017.xlsx', Selection, 'Summary', '12'); F. None of the choices listed will work correctly. 13. The following variables are defined in your workspace in MATLAB: C2 c2-1 B[3 2 7 22 7 157.5 18 2 3 For the code provided on the answer sheet, please circle POS are required for the calculation to execute without errors and result in a 3 showing where the dot operators vector INGR 1410. Eam To Page 306 Questions 9 - 11 share the same information and variables. Any variable created in one question can be used to answer a later question. Choose one for user to enter 9. You are writing code designed to ask a user to choose the classification of MATLAB variable they wish to enter from a list dialog box. They may only select one option An example is shown to the right. The choices are stored as character arrays in the cell array Type. Write the code to create this dialog box. Iscolar character array vector 10. You can assume the user will select a variable type and not close the dialog box After the selection is made, the user will be given a message prompting them to enter the appropriate variable type. The prompt message must be the phrase *Please enter a XXX: " where XXX is the variable type selected by the user. For example, if the user chooses "scalar," then the following prompt would appear: Please enter a scalar: I OK Write the code to create the correct prompt wording for the selection made and save the entire prompt as a character array named Prompt. 11. Complete the code provided on the answer sheet that issues the prompt to the user, using the wording previously created and stored in Prompt. The user should be able to enter data of the type selected. 12.A (1 x 2) cell array named Selection is to be written back into the worksheet "Parts 2017.xlsx" on sheet "Summary". Chose the correct line of code to do this. There is a header in row one of the sheet and the values should go below the headers Circle the corresponding letter on the answer sheet. A writecell('Parts2017.xlsx', Selection, 'Sheet', 'Summary', 'Range', '42'); B. ['Parts2017.xlsx') #writecell (Selection, 'Summary', '12'); C. save( 'Parts2017.xlsx', Selection, 'Summary'); D. writecell (Selection, 'Parts2017.xlsx', 'Sheet', 'Summary', 'Range', '42'); E writecell('Parts2017.xlsx', Selection, 'Summary', '12'); F. None of the choices listed will work correctly. 13. The following variables are defined in your workspace in MATLAB: C2 c2-1 B[3 2 7 22 7 157.5 18 2 3 For the code provided on the answer sheet, please circle POS are required for the calculation to execute without errors and result in a 3 showing where the dot operators vector INGR 1410. Eam To Page 306

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

3rd Edition

0471418455, 978-0471418450

More Books

Students also viewed these Databases questions