0
0
MATLABdata~10 mins

View angle control in MATLAB - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to set the azimuth angle to 45 degrees.

MATLAB
view([1], 30);
Drag options to blanks, or click blank then click option'
A90
B30
C60
D45
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing azimuth with elevation angle.
Using the second argument instead of the first for azimuth.
2fill in blank
medium

Complete the code to set the elevation angle to 60 degrees.

MATLAB
view(90, [1]);
Drag options to blanks, or click blank then click option'
A45
B60
C30
D90
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping azimuth and elevation values.
Using an invalid angle value.
3fill in blank
hard

Fix the error in the code to correctly set the view angle to azimuth 30 and elevation 45.

MATLAB
view([1], 45);
Drag options to blanks, or click blank then click option'
A30
B45
C60
D90
Attempts:
3 left
💡 Hint
Common Mistakes
Setting the wrong angle for azimuth.
Confusing azimuth and elevation.
4fill in blank
hard

Fill both blanks to set azimuth to 60 and elevation to 20.

MATLAB
view([1], [2]);
Drag options to blanks, or click blank then click option'
A60
B20
C45
D30
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping azimuth and elevation values.
Using incorrect angle values.
5fill in blank
hard

Fill all three blanks to create a view with azimuth 90, elevation 45, and then rotate azimuth by 30 degrees.

MATLAB
az = [1];
elev = [2];
view(az + [3], elev);
Drag options to blanks, or click blank then click option'
A90
B45
C30
D60
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up the order of angles.
Forgetting to add the rotation to azimuth.