PCA function suddenly Stop working with error
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Qudor Engineer
el 22 de Jul. de 2023
Comentada: Qudor Engineer
el 26 de Jul. de 2023
Hi everyone,
I'm using PCA to reduce the dimensions of my data and it was working without any problems, then when I came the next day and ran the MATLAB the PCA started throwing errors. I tried the exact example from MATLAB documentation (including using the same data in the example) but same error. below is my code followed by the error:
load hald
coeff = pca(ingredients)
the error:
Error using pcaklm (line 73)
Unknown type specified
Error in pca (line 53)
[w,truefrac] = pcaklm(mfilename,varargin{:});
------------------------------------------------------------------------------------------------------
My MATLAB version is R2021b
My OS is Ubuntu LTS 20.04
0 comentarios
Respuesta aceptada
the cyclist
el 22 de Jul. de 2023
The line
[w,truefrac] = pcaklm(mfilename,varargin{:});
Try calling
which pca -all
from the command line to see what functions are in your path.
An internet search on pcaklm suggests that you might inadvertently be calling the ECGdeli Toolbox version. Perhaps you installed that?
3 comentarios
the cyclist
el 25 de Jul. de 2023
I think the easiest solution for you is to use pathtool to move the Stats toolbox version of pca to be higher priority than the ECGdeli version.
Más respuestas (0)
Ver también
Categorías
Más información sobre Dimensionality Reduction and Feature Extraction en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!