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:


MATLAB
figure;
tiledlayout(1,2);
axA = nexttile;
surf(axA,X,Y,ZA);
axB = nexttile;
surf(axB,X,Y,ZB);


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:


MATLAB
hold(axA,'on');
plot3(axA,xp,yp,zp);


Block 2:


MATLAB
plot3(axB,xq,yq,zq);


Block 3:


MATLAB
hold(axA,'off');
plot3(axA,xr,yr,zr);


Complete the table with exact integer counts immediately after each block. Count only surface and line objects; exclude labels, titles and other graphics.

StageSurfaces in axALines in axASurfaces in axBLines in axB
After block 1
After block 2
After block 3

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Advanced Plotting Techniques Questions: