plotPCAwithRespQuality.m 410 B

123456789101112
  1. function plotPCAwithRespQuality(pcaCoords, responseInd, respThreshold)
  2. qualityInds = responseInd > respThreshold;
  3. figure
  4. scatter(pcaCoords(qualityInds, 1), pcaCoords(qualityInds, 2), [], responseInd(qualityInds), 'filled')
  5. caxis([0 1])
  6. setFavoriteColormap
  7. hCBar = colorbar;
  8. xlabel('First PC');
  9. ylabel('Second PC');
  10. hCBar.Label.String = 'Resp. Quality Index';
  11. arrayfun(@prettifyAxes, [gca hCBar])
  12. end