Fill in the answer sheet that is in red
You are working on part of the thrust-control software for commercial aircraftâ€™s autopilot mode. You will write a code for a user- defined function that accepts two inputs and returns one output. Your project manager has provided a flow chart
Two shaded rectangles( R1 and R2) in the flow chart do not have instruction.Run exam3booklet(0031030505,1) to get the instructions that go in R1 and R2.
1-1: Enter your function call exam3booklet(0031030505,1)
1-2: Copy and paste all instruction text from the matlab command window to this box:
1-3: Enter the function code
Problem 2 there is a flow chart. There are missing information. Run exam3booklet(0031030505,2) to get the instructions that go into each shape. Use the info as you code the flowchart and then run the code to your final x,y,z. Fill the answer.
Q2-1 Enter your function call exam3booklet(0031030505,2)
2-2: Copy and paste all instruction text from the matlab command window to this box:
2-3 Copy and paste your matlab code for this flowchart
2-4 final value of x,y,z:
Write a nested looping structure that will create matrix named mat1 that contains copied elements from a larger matrix. The larger matrix is 20x20 matrix that is contained within the provided p-code exam3_matrixElems.p.
You will need a starting array index and an ending array index to identify which values will be added into mat1. Run exam3booklet(0031030505,3) to get the array index for the starting element and the array index for the ending element and the dimensions of new matrix, mat1. Figure 1 has examples of the four possible ways in which you will copy the elements from a subset of exam3_matrixElems to mat1. For mat1, the direction of movement for placing values
Get Free Quote!
320 Experts Online