Code
tfr = abs ( tfr ); [row_size, column_size] = size(tfr);
tfr = tfr(1:round(row_size/2), 1:row_size);
surf(tfr); view(2);
I get in R2014b of OSX 10.10.3 Yosemite
but rotating around shows that the cells should not be black
Why is the output black? I wonder if this is a hardware problem or not.
My bet is that
trf
is a very large matrix. In these cases, the surface has so many edges (coloured black by default) that they completely clutter the image, and you don't see the surface patchesOne solution for that is to remove the edges:
Example: with
the following figures respectively show the result of
surf(trf)
andsurf(trf, 'edgecolor', 'none')
.