PCAData = [-2.98502202899458,22.6672796210154,3.56798906812280,5.38003286023468,2.60139128162043,-0.322465205787811;-2.75433238332658,24.9451080175869,9.75473228190644,5.83807923925016,1.37228140854846,-0.180140673944537;-13.6369348036086,26.6255630685479,6.83900961884685,0.0298589621078335,2.78669493085858,-1.10026794457189;-7.73859644059609,24.9649347212749,15.0773071056088,1.25838351973251,1.30773712788568,0.761776308677183;0.855092787236359,26.6034364451974,12.5620483080132,-0.0174304888229542,-1.50643412146485,0.339396672303143;-12.2956303848325,2.83422211293975,12.1328182331918,-3.21899847290515,-2.61373465645927,0.732425900848416;13.9635817986070,3.14696789173956,-22.6388422615676,9.36722613484611,-4.25389743453068,-0.863530748662408;-5.79846378156704,0.696785068677031,-16.7729836734019,-10.8567925927936,-0.859211097750064,-0.457983533200633;1.34030745506404,-7.73990586105631,-18.3005650429611,2.53704340440820,1.43068309024371,0.687583508109624;8.62883897743885,26.5724107368384,-23.0086889307312,-8.27556908823016,1.62535100481381,0.583468776257788;6.17179262135388,1.53922499048761,-5.83269115412472,8.48248882973572,0.895539300087467,1.03550145294904;-13.3345780604345,-5.43132332672928,-2.28484751207687,3.03198384610890,3.21390617123096,0.563547823474909;-11.8990481078634,7.75458913099141e-05,1.94502924043626,3.64567865059359,1.57299472988536,-0.518696080867794;-11.6683584621953,2.27790594246278,8.13177245421985,4.10372502960915,0.343884856813217,-0.376371549024568;-27.0079739219118,-7.37524004413819,4.40456987731681,-2.57167235235386,1.24410010325611,-1.39461425719196;-16.6526225194649,2.29773264615079,13.4543472779222,-0.475970689908565,0.279340576150591,0.565545433597187;-3.60192025219801,15.2698354076354,11.7505683941698,-0.884607593643508,-2.02063239733233,0.241281234763147;-12.2956303848325,2.83422211293975,12.1328182331918,-3.21899847290515,-2.61373465645927,0.732425900848415;18.4205948380414,14.4805689293015,-21.8273623477243,10.2344032396667,-3.73969915866319,-0.765415311122422;-1.34145074213266,12.0303861062391,-15.9615037595586,-9.98961548797310,-0.345012821882542,-0.359868095660632;-3.11670558437033,-19.0735068986184,-19.1120449568044,1.66986629958763,0.916484814376199,0.589468070569648;-0.285187101429917,3.90520866171430,-24.6316487584178,-10.0099232978713,0.596954453078857,0.387237901177838;-2.74223345751487,-21.1279770846365,-7.45565098181138,6.74813462009465,-0.132857251647554,0.839270577868993;-22.2486041393033,-28.0985254018534,-3.90780733976348,1.29762963646779,2.18550961949599,0.367316948394952;-20.8130741867323,-22.6671245292328,0.322069412749646,1.91132444095251,0.544598178150350,-0.714926955947858;-20.5823845410641,-20.3892961326613,6.50881262653324,2.36937081996805,-0.684511694921752,-0.572602424104583;-31.4649869613463,-18.7088410817002,3.59308996347347,-3.43884945717441,0.729901827388593,-1.49272969473198;-25.5666485983337,-20.3694694289733,11.8313874502355,-2.21032489954964,-0.749055975584392,0.369314558517180;-12.5159463310668,-7.39736666748861,10.1276085664832,-2.61896180328457,-3.04902894906730,0.0450503596831596;-16.7526434242669,-8.49937892462227,11.3213383193484,-4.08617557772568,-3.12793293232679,0.634310463308450;113.527790935633,-10.5991623467119,16.2625120229462,-4.25891212794653,0.627088564087884,-1.64846184464387;115.190977186011,-14.2147522982175,10.0148082642267,-1.77242713027554,1.42130111011805,1.29315242811367;111.527790935633,-13.5991623467119,16.2625120229462,-4.25891212794653,0.627088564087884,-1.64846184464387;117.190977186011,-16.2147522982175,10.0148082642267,-1.77242713027554,1.42130111011805,1.29315242811367;];
figPosition = figure('Name','First Structure');
plot(PCAData(1:30,1),PCAData(1:30,2), 'or', 'MarkerFaceColor', 'r', 'MarkerSize', 10)
hold
plot(PCAData(31:34,1),PCAData(31:34,2), '^b', 'MarkerFaceColor', 'b', 'MarkerSize', 10)
xlim([-40,140]);
ylim([-80,80]);
h_ylabel = ylabel('PC2(13.38%)');
set(h_ylabel, 'fontsize', 20);
h_xlabel = xlabel('PC1(78.95%)');
set(h_xlabel, 'fontsize', 20);
set(figPosition,'Position', [500, 500, 1200, 600]);
set(gca, 'fontsize', 20);
'프로그램 사용법 > Matlab' 카테고리의 다른 글
Matlab PCA (0) | 2021.06.14 |
---|---|
[Matlab]함수 생성 (0) | 2014.01.16 |
[Matlab]PNN(Probabilistic Neural Network) (0) | 2013.06.13 |
[Matlab]RBF(Radial Basis Function) (0) | 2013.06.13 |
[Matlab]그래프 여러게 이미지 파일로 한번에 저장하기 (0) | 2013.05.02 |