Why can't I use mapcaplot?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Ruth Pikovsky
el 9 de Sept. de 2021
Comentada: Ruth Pikovsky
el 10 de Sept. de 2021
Hello,
I'm trying to preform PCA analysis for a set of values that I get from the attached excel.
I need to preform the analysis on all 40 variables.
clc
clear all
close all
x=readtable('PCA table.xlsx');
x=table2array(x);
mapcaplot(x)
When I try to use mapcaplot I get the following error:
Index in position 2 exceeds array bounds (must not exceed 1).
Error in mapcaplot>localUpdateBrushPlots (line 201)
ydata = data(:,INDEX_DIM2);
Error in mapcaplot>localInit (line 178)
localUpdateBrushPlots(fig);
Error in mapcaplot (line 65)
localInit(fig,varargin{:});
Error in Untitled (line 7)
mapcaplot(x)
I would appreciate some help. I've never tried to do PCA before and I'm not sure what exactly the function needs as input.
Thank you,
Ruth
1 comentario
Star Strider
el 9 de Sept. de 2021
If you use the rmmissing funciton on ‘x’, only two rows of valid data remain.
Respuesta aceptada
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!