Two MATLAB axes, axA and axB, display membrane displacement surfaces using surf(X,Y,HA) and surf(X,Y,HB). Displacements are in metres. Surface A ranges from 0 to 0.004 m0.004\ \text{m}0.004 m, and surface B ranges from 0 to 0.012 m0.012\ \text{m}0.012 m. Each axes uses automatic colour limits, scalar colour data equal to its height matrix, and the same colormap.
Both maxima appear in the colormap's highest-end colour. Which change makes a given colour represent the same displacement in both plots?
Set clim(axA,[0 0.012]) and clim(axB,[0 0.012]), retaining the common colormap.
Set zlim(axA,[0 0.012]) and zlim(axB,[0 0.012]), retaining automatic colour limits.
Set axis(axA,'equal') and axis(axB,'equal'), retaining automatic colour limits.
Set colormap(axA,parula) and colormap(axB,parula), retaining automatic colour limits.
Unlock full course notes by signing up
Separate camera direction from surface colouring
An engineer has created a surface using surf(ax,X,Y,Z). Match each command to its direct effect on that surface, assuming no later command overrides the setting.
Track overlays across two surface displays
A laboratory displays two scanned surfaces in separate MATLAB axes. Starting with a new figure, the following setup creates one surface in each axes and leaves both hold settings off:
The laboratory then executes the following three blocks in sequence. Each coordinate triplet contains three nonempty finite vectors of equal length, so each plot3 call creates exactly one line object. No other commands intervene.
Block 1:
Recover a feature missed by surface sampling
An analytical model describes a localized surface bump:
A programmer evaluates it using numerical coordinates in metres:
Correct vertical exaggeration with mixed coordinate units
An engineer plots a scanned component using surf(ax,X,Y,Z). Both X and Y contain coordinates in metres, whereas Z contains heights in millimetres. The horizontal x-coordinate spans 000 to 0.75 m0.75\ \text{m}0.75 m, and the height spans 000 to 30 mm30\ \text{mm}30 mm.
After creating the surface, the engineer executes:
The orthographic projection avoids perspective sizing. In this side view, the x and z directions lie in the image plane. No later command changes the scaling. Compare full coordinate spans, not sloping lengths along the surface.