Problem using binScatterPlot plotting scores of PCA

I am trying to follow the webinar Predictive Maintenance with MATLAB: A Prognostics Case Study but having problem using binScatterPlot. It's giving me the error "Undefined function 'binScatterPlot' for input arguments of type 'double'."
What is basically the source of the problem and how can I fix it? the code is something like this-
[coeff, score, latent] = pca(XtrainStandard);
binScatterPlot(score(:,1),score(:,2),[50,50],'Gamma',0.01)
Thank you

답변 (1개)

Kojiro Saito
Kojiro Saito 2018년 11월 27일
As the document of binScatterPlot says, input of binScatterPlot should be tall arrays. I think your XtrainStandard is not a tall array, so, you need to convert tall arrays.
[coeff, score, latent] = pca(tall(XtrainStandard));
binScatterPlot(score(:,1),score(:,2),[50,50],'Gamma',0.01)

카테고리

도움말 센터File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

제품

질문:

2018년 11월 24일

답변:

2018년 11월 27일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by