Connectome viewing

how do I plot the cortex convhull ON TOP OF a cortical surface displayed by figure_3d.m

You can use view_surface_matrix.m to plot any custom surface in a 3D figure.
Is it what you need?

how do I plot (all) the VertNormals ON TOP OF the same surface, with VertNormals from

Examples from the code on how to plot orientation vectors on top of a surface:

  • With the line function: figure_3d.m line 4417, orient=VertNormals
  • With the quiver3 function: view_leadfield.m, line 390: Vertices=HeadmodelMat{iLF}.GridLoc, orient=dataValue