Hi there,
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]);
trisurf(tri(:,2:4),Xp,Yp,z);
view(0,90);shading interp;
colormap(jet);colorbar;axis equal
hold on;
hd = quiver(Xp,Yp,Hs_x,Hs_y,'color','k');
BR,
Ravi
0 Comments
Sign in to comment.