Pcolor could show or hide all grid lines together, but sometimes we only want to display edge lines between grids with different color values. Pcboundary draws boundary lines of connected components plotted by pcolor function. You can also set the visibility of boundary lines for NaN grids.
Yang Liu (2022). pcboundary - boundary lines of pcolor regions (https://www.mathworks.com/matlabcentral/fileexchange/95268-pcboundary-boundary-lines-of-pcolor-regions), MATLAB Central File Exchange. 검색됨 .