Note that AFR should hav one less row as well as column.
Probably, the simplest way to create your spray:
pdata = surf2patch(SL, h, zeros(size(h), AFR(1:end-1, :)));
figure;
patch(pdata, 'FaceColor', 'flat', 'EdgeColor', 'none');
colormap(grey);
surf2patch is used to convert your mesh into polygons that is then passed to patch.
Best Answer