I have plotted wave heights on an unstructured triagngular surface and added wave directions using quiver function.
Since these two plots are in two different planes, the final figure shows as attached image (Fig01.png).
Hereby attached the used code (Test_case.zip/Combine_Hsig_DIR_V1.m) with all relevent files.
Can anyone help me to place the quiver plot on top of the triangular surface?
Following mention the last part of the code.
eval(['load ' Hsig_matfile]);
elefile =[basename '.ele'];
fid = fopen(elefile);
[nelem] = fscanf(fid,'%i',[1 3]);
ncol = 4 + nelem(3);
tri = fscanf(fid,'%i',[ncol nelem(1)])';
z = eval([wavepar]);
hd = quiver(Xp,Yp,Hs_x,Hs_y,'color','k');