How can I get a surface plot like below in which vectors will be shown on the surface plot.
I have tried this way:
TT = hypot(qx, qy);
surf(x, y, TT);
quiver(x1, y1, qx, qy, 'g');
where, x and y are the coordinates in the X and Y direction and TT is a matrix. qx and qy are the x and y components of TT.
If I plot separately, I get the surface plot and vector plot as shown below figure 2 and 3. But if I plot in the same figure I don’t get a plot like figure 1, rather what I get same as below figure 2. I need expert’s help. Thanks.