谁能给我讲讲这个PCA程序 (matlab) %——————————行选择子程序———————————function newMatrix = selcol(oldMatrix,maskVector)if size(maskVector,1)~= size(oldMatrix,2)error('The mask vector and matr

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/29 02:50:12

谁能给我讲讲这个PCA程序 (matlab) %——————————行选择子程序———————————function newMatrix = selcol(oldMatrix,maskVector)if size(maskVector,1)~= size(oldMatrix,2)error('The mask vector and matr
谁能给我讲讲这个PCA程序 (matlab)
%——————————行选择子程序———————————
function newMatrix = selcol(oldMatrix,maskVector)
if size(maskVector,1)~= size(oldMatrix,2)
error('The mask vector and matrix are of uncompatible size.');
end
numTaken = 0;
for i = 1:size(maskVector,1)
if maskVector(i,1) == 1
takingMask(1,numTaken + 1) == i; %这是要干嘛?而且提示takingMask有错误 “appears to be changing with each loop iteration,consider preallocating for speed"
numTaken = numTaken + 1;
end
end
newMatrix = oldMatrix(:,takingMask); %
这是网上下载的PCA程序中的一小段,看不懂.
刚接触matlab ,请高手多多指教!

谁能给我讲讲这个PCA程序 (matlab) %——————————行选择子程序———————————function newMatrix = selcol(oldMatrix,maskVector)if size(maskVector,1)~= size(oldMatrix,2)error('The mask vector and matr
转向中断服务程序时,CF 位不能被硬件自动清除,必须用软件清0.(注意:要使CF 中断得到响应,必须先总体允许PCA0 中断.通过将EA 位(IE.7 )和EPCA