How to fix errors caused by: "Index exceeds the number of array elements (7) "
2 次查看(过去 30 天)
显示 更早的评论
Stephen
2022-7-4
Hi,
I am fairly new to MATLAB and am working on a research project where we must run a pre-determined set of sequences through our code to find possible glycopeptides. This code has worked in the past, but recently it has been returning errors, which I will attach below.
Below the error statements I will attach the "glycanFrag" code at the line before where the error is (starts at line 56). I assume the "glycanFrag" code is where the problem is, but I could be wrong so let me know your thoughts. If I need to attach more of the code or give more information, please let me know and I will ASAP as I really need to get this issue resolved.
Error using scoreAllSpectra_spmd (line 101)
Error detected on worker 4.
Error in batch (line 36)
calchit = scoreAllSpectra_spmd(pepfile, xmlfilepath, fragMode, MS1tol, MS1tolUnit, MS2tol, MS2tolUnit,
OutputDir, OutputCSV, maxlag, CutOffMed, FracMax, nmFrag, npFrag, ngFrag, selectPeak, false, mzXMLfilename);
%#ok<NASGU>
Caused by:
Error using glycanFrag (line 57)
Index exceeds the number of array elements (7).
while(openBrac~=closeBrac)
if (NewGlyPep(breakPt(j))=='{')
openBrac=openBrac+1;
end
if (NewGlyPep(breakPt(j))=='}')
closeBrac=closeBrac+1;
end
glyBion=[glyBion,NewGlyPep(breakPt(j))];
NewGlyPep(breakPt(j))='';
end
回答(2 个)
Karan Kannoujiya
2022-7-4
Hi stephen,
This error is caused when user try to access that index in the array which does not exist for e.g
suppose you created a array 'x' having 4 element in this
x=[ 2 4 5 6];
so when you want first element of array you will just print x(1) and so on..
x(1)--->2
x(2)--->4
x(3)--->5
x(4)--->6
if you try to acces x(5) or any index greater than 5 then it will show the error(Index exceeds the no of array elements)
whatever the code you send it will be not possible to tell where actual error is. You can debug your code by putting the break point at the line where the actual error is showing.
I,m providing you the link where you can learn how to debug you matlab code
Image Analyst
2022-7-4
Is glycanFrag a variable, function, or separate m-file?
Set a breakpoint there before the error. When it stops, how many elements are in glycanFrag?
theSize = size(glycanFrag);
whos glycanFrag
I bet it's less than 7. Why? I don't know. I thought that in recent versions it told you the index you were trying to use, as well as the max index possible in the array.
Maybe try running it without using the Parallel Processing Toolbox.
8 个评论
Stephen
2022-7-4
Hi, thank you for taking your time to help out, it is well appreaciated.
glycanFrag is a seperate m-file that my original m-file seems to use when running. The original m-file that I am attempting to run is batch.m, and this one is glycanFrag.m... So I did what you said and set a breakpoint before the error, and it returned a longer (though similar) error message this time (attached below). I am unsure how many elements are in glycanFrag as I did not see that when it stopped. Also, I will now try runing it without the parallel proccessing toolboxx and see what the result is. I have also attached the batch.m code and glycanFrag.m code, respectively, underneath the error message if that helps. Please let me know your thoughts.
Warning: An error has occurred during SPMD execution. An attempt has been made to interrupt execution on the workers. If this
situation persists, it may be necessary to interrupt execution using CTRL-C and then deleting and restarting the parallel
pool.
The error that occurred on worker 1 is:
Error using glycanFrag (line 57)
Index exceeds the number of array elements (4).
Error in multiSGPFrag (line 546)
[NGP.sgp,gBion]=glycanFrag(protProd(i).sgp,modComb(k,:));
Error in scoreProb (line 63)
TempIons=multiSGPFrag(SmallGlyPep,nmFrag,npFrag,ngFrag,1); % calculate parameters for charge =1
Error in score1Spectrum (line 124)
= scoreProb(SpectraA,z,SmallGlyPep,MS2tol,MS2tolUnit,fragMode,add,nFrag,maxlag,ETDYION); %N1: Total number, K1:
matched number
Error in scoreAllSpectra_spmd>scorelocalspectra (line 203)
spectrascores(j) = score1Spectrum(ithspectra,SmallGlyPep(j),...
Error in scoreAllSpectra_spmd (line 101)
spmd
Error in batch (line 36)
calchit = scoreAllSpectra_spmd(pepfile, xmlfilepath, fragMode, MS1tol, MS1tolUnit, MS2tol, MS2tolUnit, OutputDir, OutputCSV,
maxlag, CutOffMed, FracMax, nmFrag, npFrag, ngFrag, selectPeak, false, mzXMLfilename);
.
> In spmdlang/RemoteSpmdExecutor/maybeWarnIfInterruptedAndWaiting (line 304)
In spmdlang/RemoteSpmdExecutor/isComputationComplete (line 132)
In spmdlang.spmd_feval_impl (line 21)
In spmd_feval (line 8)
In scoreAllSpectra_spmd (line 101)
In batch (line 36)
Error using scoreAllSpectra_spmd (line 101)
Error detected on workers 1 4.
Error in batch (line 36)
calchit = scoreAllSpectra_spmd(pepfile, xmlfilepath, fragMode, MS1tol, MS1tolUnit, MS2tol, MS2tolUnit, OutputDir, OutputCSV,
maxlag, CutOffMed, FracMax, nmFrag, npFrag, ngFrag, selectPeak, false, mzXMLfilename);
Caused by:
Error using glycanFrag (line 57)
Index exceeds the number of array elements (4).
Error using glycanFrag (line 57)
Index exceeds the number of array elements (7).
% batch.m code
% to execute:
% matlab -nosplash -nodesktop -r batch
% read MS data
%function exitcode = batch(mzXMLfilename, outputCSV)
%mz = readmzXML('pp_2017_022_T1_B.mzXML');
%summary = mz.retrieveSpectraSummary;
%disp(summary);
% disp(fragments);
% Tandem MS Analysis settings
pepfile = 'merge_lib.txt'; % output from last step
%xmlfilepath = '/home/art/work/zebian/';
xmlfilepath = 'D:\July04_NewRUN';
mzXMLfilename = 'Q0-4-ELU-80.mzXML';
fragMode = 'AUTO';
MS1tol = 10.0;
MS1tolUnit = 'ppm';
MS2tol = 10.0;
MS2tolUnit = 'ppm';
OutputDir = xmlfilepath;
OutputCSV = 'TandemMS.csv';
maxlag = 50;
CutOffMed = 2.0;
FracMax = 0.02;
nmFrag = 0;
npFrag = 2;
ngFrag = 0;
selectPeak = [163.1, 292.1, 366, 454.1, 657.2];
% uses multiple CPUs
calchit = scoreAllSpectra_spmd(pepfile, xmlfilepath, fragMode, MS1tol, MS1tolUnit, MS2tol, MS2tolUnit, OutputDir, OutputCSV, maxlag, CutOffMed, FracMax, nmFrag, npFrag, ngFrag, selectPeak, false, mzXMLfilename);
exitcode= 0;
quit;
Below is the glycanFrag m-file code:
function [NewGlyPep,Bion]=glycanFrag(SmallGlyPep,breakPt)
%GLYCANFRAG: Break input glycan/glycopeptide at break points and return fragments
%
% Syntax:
% [NewGlyPep,Bion]=glycanFrag(SmallGlyPep,breakPt)
%
% Input: SmallGlyPep and breakPt array, denoting sites of glycan fragmentation
%
% Output: New glycopeptide that is reduced in size and cell array with Bions
% Note: If the input is purely a glycan, then NewGlyPep will correspond to the y-ion
% formed following either single or multiple fragmentation
%
% Example 1: for glycopeptide
% >> SmallGlyPep='GYLN{n{n{h{h{h{h}}}{h{h{h}}{h{h}}}}}}CT{n{h{s}}{n{h{s}{f}}}}R';
% breakPt=[9,13,52]
% [NewGlyPep,glyBion]=glycanFrag(SmallGlyPep,breakPt)
% Answer:
% breakPt = 9 13 52
% NewGlyPep = GYLN{n{n}}CT{n{h{s}}{n{h{f}}}}R
% glyBion = '{s}' '{h{h}}' '{h{h}{h{h{h}}{h{h}}}}'
%
% Example 2: for glycopeptide (with glycan and another modification on the
% same amino acid)
% >> SmallGlyPep='GYLN{n{n{h{h{h{h}}}{h{h{h}}{h{h}}}}}}CT<s>{n{h{s}}{n{h{s}{f}}}}R';
% breakPt=[9,13,51]
% [NewGlyPep,glyBion]=glycanFrag(SmallGlyPep,breakPt)
% Answer:
% breakPt = 9 13 51
% NewGlyPep = GYLN{n{n}}CT<s>{n{h{s}}}R
% glyBion = '{n{h{s}{f}}}' '{h{h}}' '{h{h}{h{h{h}}{h{h}}}}'
%
% Example 3: for glycan
% >> SmallGlyPep='{n{n{h{h{h{h}}}{h{h{h}}{h{h}}}}}}';
% breakPt=[7,26]
% [NewGlyPep,glyBion]=glycanFrag(SmallGlyPep,breakPt)
% Answer:
% breakPt = 7 26
% NewGlyPep = {n{n{h{h{h{h}}{h}}}}}
% glyBion = '{h}' '{h{h{h}}}'
%
%See also UQFRAGION, JOINGLYPEP, COMPILEFRAGS,GLYCANFRAG, BREAKGLYPEP,
%MULTISGPFRAG.
% Author: Sriram Neelamegham
% Date Lastly Updated: 8/11/14
nFrag=length(breakPt);
NewGlyPep=SmallGlyPep;
count=1;
Bion=[];
for j=nFrag:-1:1 % start with outermost bond
openBrac=1;
closeBrac=0;
glyBion='{';
NewGlyPep(breakPt(j))='';
while(openBrac~=closeBrac)
if (NewGlyPep(breakPt(j))=='{')
openBrac=openBrac+1;
end
if (NewGlyPep(breakPt(j))=='}')
closeBrac=closeBrac+1;
end
glyBion=[glyBion,NewGlyPep(breakPt(j))];
NewGlyPep(breakPt(j))='';
end
Bion=[Bion,cellstr(glyBion)];
count=count+1;
end
end
Image Analyst
2022-7-4
The error actually seems to be in this line:
[NGP.sgp,gBion]=glycanFrag(protProd(i).sgp,modComb(k,:));
so put this in front of that line and run it again and tell us what you see in the command window.
whos protProd
whos modComb
i
k
[NGP.sgp,gBion]=glycanFrag(protProd(i).sgp,modComb(k,:));
Either k or i is greater than 7 which is the number of rows in either modComb or protProd
Stephen
2022-7-5
I apologize for the late response; I didn't have access to matlab again until now. Nonetheless, I have added the code you said above the line where the error is, and it returned the output I have pasted below. Note the "Lab 4: scan", etc, is what the usual output is, but it seems to have been interuptted by the errors.
>> batch
calculating isotopic mass
Starting parallel pool (parpool) using the 'local' profile ...
Preserving jobs with IDs: 74 because they contain crash dump files.
You can use 'delete(myCluster.Jobs)' to remove all jobs created with profile local. To create 'myCluster' use 'myCluster = parcluster('local')'.
Connected to the parallel pool (number of workers: 8).
Lab 4:
scan number: 10036
possible glycopeptide:
scan number: 10037
possible glycopeptide:
scan number: 10038
possible glycopeptide:
scan number: 10039
possible glycopeptide:
scan number: 10040
possible glycopeptide:
scan number: 10041
possible glycopeptide:
scan number: 10043
possible glycopeptide:
scan number: 10044
possible glycopeptide:
scan number: 10045
possible glycopeptide:
scan number: 10046
possible glycopeptide:
scan number: 10047
possible glycopeptide:
Lab 6:
scan number: 16726
possible glycopeptide:
scan number: 16727
possible glycopeptide:
scan number: 16728
possible glycopeptide:
scan number: 16729
possible glycopeptide:
scan number: 16731
possible glycopeptide:
scan number: 16732
possible glycopeptide:
scan number: 16733
possible glycopeptide:
scan number: 16734
possible glycopeptide:
scan number: 16735
possible glycopeptide:
scan number: 16736
possible glycopeptide:
scan number: 16737
possible glycopeptide:
Warning: An error has occurred during SPMD execution. An attempt has been made to interrupt
execution on the workers. If this situation persists, it may be necessary to interrupt
execution using CTRL-C and then deleting and restarting the parallel pool.
The error that occurred on worker 4 is:
Error using makeStub (line 22)
Attempt to execute SCRIPT glycanFrag as a function:
C:\Users\creuz\Downloads\GlycoPAT-master\GlycoPAT-master\toolbox\func\frag\glycanFrag.m
Error in score1Spectrum>getnFrag (line 268)
glyMat(i).struct=makeStub(glyMat(i).struct,stubLen);
Error in score1Spectrum (line 90)
[nmFrag,ngFrag,npFrag,SmallGlyPep]=getnFrag(fragMode,SmallGlyPep,nmFrag,ngFrag,npFrag); %
sets fragmentation parameters
Error in scoreAllSpectra_spmd>scorelocalspectra (line 203)
spectrascores(j) = score1Spectrum(ithspectra,SmallGlyPep(j),...
Error in scoreAllSpectra_spmd (line 101)
spmd
Error in batch (line 36)
calchit = scoreAllSpectra_spmd(pepfile, xmlfilepath, fragMode, MS1tol, MS1tolUnit, MS2tol,
MS2tolUnit, OutputDir, OutputCSV, maxlag, CutOffMed, FracMax, nmFrag, npFrag, ngFrag,
selectPeak, false, mzXMLfilename);
.
> In spmdlang/RemoteSpmdExecutor/maybeWarnIfInterruptedAndWaiting (line 304)
In spmdlang/RemoteSpmdExecutor/isComputationComplete (line 132)
In spmdlang.spmd_feval_impl (line 21)
In spmd_feval (line 8)
In scoreAllSpectra_spmd (line 101)
In batch (line 36)
Error using scoreAllSpectra_spmd (line 101)
Error detected on workers 4 6.
Error in batch (line 36)
calchit = scoreAllSpectra_spmd(pepfile, xmlfilepath, fragMode, MS1tol, MS1tolUnit, MS2tol,
MS2tolUnit, OutputDir, OutputCSV, maxlag, CutOffMed, FracMax, nmFrag, npFrag, ngFrag,
selectPeak, false, mzXMLfilename);
Caused by:
Error using makeStub (line 22)
Attempt to execute SCRIPT glycanFrag as a function:
C:\Users\creuz\Downloads\GlycoPAT-master\GlycoPAT-master\toolbox\func\frag\glycanFrag.m
Image Analyst
2022-7-5
There is no output of whos! Put a breakpoint on the whos line and make sure it does it.
Stephen
2022-7-6
Sorry, I'm fairly new to MatLab. I added the breakpoint and when it ran it returned the same errors as in my last comment. So I tried evaluating the section where I added the breakpoint and it returned this
K>> whos protProd
whos modComb
i
k
ans =
0.0000 + 1.0000i
k =
1
K>>
After that I attempted to run it again, but coded in the breakpoint into the batch m-file (the main file), using the code below
dbstop in multiSGPFrag at 546
dbstop in multiSGPFrag at 547 % the file/lines where the whos are
Still, it returned the same error. So I then had it pause on errors and enter debug mode. The green arrow I'm pretty sure indicates where the run has paused (so the error I assume). This is the code where the green arrow was (in a seperate m-file, titiled scoreAllSpectra_spmd). The green arrow was pointed at the "spmd" line. Let me know your thoughts.
%% distribute the spectra array
distspectra = distributed(MSSpectra);
spmd
diary([int2str(labindex) 'merge_lib.txt']);
localSpectra = getLocalPart(distspectra);
hitsingle = scorelocalspectra(localSpectra,usemzxml,...
spectralengthfilter,PepMS1,PepMost,PepNames,headerinfo,...
MS1tol,MS1tolUnit,MS2tol,MS2tolUnit,param,nFrag,selectPeak,ProteinIDs);
diary off
end
diary('gather.txt');
% merge all worker's result
hit=[];
for i = 1 : numel(hitsingle)
hit=[hit;hitsingle{i}'];
end
hit = hit';
% numspectra = length(MSSpectra);
% fprintf(1,' the total number of spectra is: %i\n',numspectra);
% spmd
% codistr = codistributor1d(2, ...
% codistributor1d.unsetPartition, [1,numspectra]);
% distMSSpectra = codistributed(MSSpectra,codistr);
% localSpectra = getLocalPart(distMSSpectra);
% hitsingle = scorelocalspectra(localSpectra,usemzxml,...
% spectralengthfilter,PepMS1,PepMost,PepNames,headerinfo,...
% MS1tol,MS1tolUnit,MS2tol,MS2tolUnit,param,nFrag,selectPeak,ProteinIDs);
% codistrscore = codistributor1d(2, ...
% codistributor1d.unsetPartition, [1,numspectra]);
%
% % globalspectrascores = codistributed.build(localspectrascores, codistr);
% % end
% %
% % spectrascores = gather(globalspectrascores);
% assign the parameter to csvheaderinfo.
csvheaderinfo = struct('Pepfile',Pepfile,'DataDirectory',DataDirectory,...
'xmlfullfilename',xmlfullfilename,'fragMode',fragMode,'MS1tol',MS1tol,...
'MS1tolUnit',MS1tolUnit,'MS2tol',MS2tol,'MS2tolUnit',MS2tolUnit,...
'nFrag',nFrag,'maxlag',maxlag,'CutOffMed',CutOffMed,'FracMax'....
,FracMax,'selectPeak',selectPeak);
% output the results to a csv file
scoreCSVwrite(csvheaderinfo,hit,fullOutName);
end
Image Analyst
2022-7-6
I'm still not seeing any output from whos. Don't paste all 4 lines into the command window. Maybe it's getting confused. Put those 4 lines literally into your source code right before the line that throws the error.
It looks like something is a complex number 0+0i. Not sure what until you do what I say. But it should not be. That's why we always say don't use i as a variable name. Use ii or index or some other name than i, so it doesn't get confused with the imaginary variable sqrt(-1).
Stephen
2022-7-6
So I added it into the source code and it returned a very long output (attached below).
Name Size Bytes Class Attributes
protProd 1x1 1488 struct
Name Size Bytes Class Attributes
modComb 4x1 32 double
i =
1
k =
1
Worker 6:
k =
1
Name Size Bytes Class Attributes
protProd 1x1 1604 struct
Name Size Bytes Class Attributes
modComb 3x1 24 double
i =
1
k =
2
Name Size Bytes Class Attributes
protProd 1x1 1604 struct
Name Size Bytes Class Attributes
modComb 3x1 24 double
i =
1
k =
3
Name Size Bytes Class Attributes
protProd 1x1 1604 struct
Name Size Bytes Class Attributes
modComb 3x2 48 double
i =
1
k =
1
Name Size Bytes Class Attributes
protProd 1x1 1604 struct
Name Size Bytes Class Attributes
modComb 3x2 48 double
i =
1
k =
2
Name Size Bytes Class Attributes
protProd 1x1 1604 struct
Name Size Bytes Class Attributes
modComb 3x2 48 double
i =
1
k =
3
Name Size Bytes Class Attributes
protProd 1x1 1604 struct
Name Size Bytes Class Attributes
modComb 3x1 24 double
i =
1
k =
1
Name Size Bytes Class Attributes
protProd 1x1 1604 struct
Name Size Bytes Class Attributes
modComb 3x1 24 double
i =
1
k =
2
Name Size Bytes Class Attributes
protProd 1x1 1604 struct
Name Size Bytes Class Attributes
modComb 3x1 24 double
i =
1
k =
3
Name Size Bytes Class Attributes
protProd 1x1 1604 struct
Name Size Bytes Class Attributes
modComb 3x2 48 double
i =
1
k =
1
Name Size Bytes Class Attributes
protProd 1x1 1604 struct
Name Size Bytes Class Attributes
modComb 3x2 48 double
i =
1
k =
2
Name Size Bytes Class Attributes
protProd 1x1 1604 struct
Name Size Bytes Class Attributes
modComb 3x2 48 double
i =
1
k =
3
Name Size Bytes Class Attributes
protProd 1x1 1604 struct
Name Size Bytes Class Attributes
modComb 3x1 24 double
i =
1
k =
1
Name Size Bytes Class Attributes
protProd 1x1 1604 struct
Name Size Bytes Class Attributes
modComb 3x1 24 double
i =
1
k =
2
Name Size Bytes Class Attributes
protProd 1x1 1604 struct
Name Size Bytes Class Attributes
modComb 3x1 24 double
i =
1
k =
3
Name Size Bytes Class Attributes
protProd 1x1 1604 struct
Name Size Bytes Class Attributes
modComb 3x2 48 double
i =
1
k =
1
Name Size Bytes Class Attributes
protProd 1x1 1604 struct
Name Size Bytes Class Attributes
modComb 3x2 48 double
i =
1
k =
2
Name Size Bytes Class Attributes
protProd 1x1 1604 struct
Name Size Bytes Class Attributes
modComb 3x2 48 double
i =
1
k =
3
Name Size Bytes Class Attributes
protProd 1x1 1604 struct
Name Size Bytes Class Attributes
modComb 3x1 24 double
i =
1
k =
1
Name Size Bytes Class Attributes
protProd 1x1 1604 struct
Name Size Bytes Class Attributes
modComb 3x1 24 double
i =
1
k =
2
Name Size Bytes Class Attributes
protProd 1x1 1604 struct
Name Size Bytes Class Attributes
modComb 3x1 24 double
i =
1
k =
3
Name Size Bytes Class Attributes
protProd 1x1 1604 struct
Name Size Bytes Class Attributes
modComb 3x2 48 double
i =
1
k =
1
Name Size Bytes Class Attributes
protProd 1x1 1604 struct
Name Size Bytes Class Attributes
modComb 3x2 48 double
i =
1
k =
2
Name Size Bytes Class Attributes
protProd 1x1 1604 struct
Name Size Bytes Class Attributes
modComb 3x2 48 double
i =
1
k =
3
Name Size Bytes Class Attributes
protProd 1x1 1600 struct
Name Size Bytes Class Attributes
modComb 3x1 24 double
i =
1
k =
1
Name Size Bytes Class Attributes
protProd 1x1 1600 struct
Name Size Bytes Class Attributes
modComb 3x1 24 double
i =
1
k =
2
Name Size Bytes Class Attributes
protProd 1x1 1600 struct
Name Size Bytes Class Attributes
modComb 3x1 24 double
i =
1
k =
3
Name Size Bytes Class Attributes
protProd 1x1 1600 struct
Name Size Bytes Class Attributes
modComb 3x2 48 double
i =
1
k =
1
Name Size Bytes Class Attributes
protProd 1x1 1600 struct
Name Size Bytes Class Attributes
modComb 3x2 48 double
i =
1
k =
2
Name Size Bytes Class Attributes
protProd 1x1 1600 struct
Name Size Bytes Class Attributes
modComb 3x2 48 double
i =
1
k =
3
Name Size Bytes Class Attributes
protProd 1x1 1604 struct
Name Size Bytes Class Attributes
modComb 3x1 24 double
i =
1
k =
1
Name Size Bytes Class Attributes
protProd 1x1 1604 struct
Name Size Bytes Class Attributes
modComb 3x1 24 double
i =
1
k =
2
Name Size Bytes Class Attributes
protProd 1x1 1604 struct
Name Size Bytes Class Attributes
modComb 3x1 24 double
i =
1
k =
3
Name Size Bytes Class Attributes
protProd 1x1 1604 struct
Name Size Bytes Class Attributes
modComb 3x2 48 double
i =
1
k =
1
Name Size Bytes Class Attributes
protProd 1x1 1604 struct
Name Size Bytes Class Attributes
modComb 3x2 48 double
i =
1
k =
2
Name Size Bytes Class Attributes
protProd 1x1 1604 struct
Name Size Bytes Class Attributes
modComb 3x2 48 double
i =
1
k =
3
Worker 7:
k =
1
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 9x1 72 double
i =
1
k =
2
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 9x1 72 double
i =
1
k =
3
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 9x1 72 double
i =
1
k =
4
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 9x1 72 double
i =
1
k =
5
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 9x1 72 double
i =
1
k =
6
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 9x1 72 double
i =
1
k =
7
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 9x1 72 double
i =
1
k =
8
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 9x1 72 double
i =
1
k =
9
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
1
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
2
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
3
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
4
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
5
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
6
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
7
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
8
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
9
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
10
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
11
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
12
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
13
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
14
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
15
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
16
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
17
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
18
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
19
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
20
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
21
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
22
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
23
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
24
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
25
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
26
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
27
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
28
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
29
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
30
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
31
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
32
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
33
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
34
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
35
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
36
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 9x1 72 double
i =
1
k =
1
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 9x1 72 double
i =
1
k =
2
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 9x1 72 double
i =
1
k =
3
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 9x1 72 double
i =
1
k =
4
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 9x1 72 double
i =
1
k =
5
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 9x1 72 double
i =
1
k =
6
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 9x1 72 double
i =
1
k =
7
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 9x1 72 double
i =
1
k =
8
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 9x1 72 double
i =
1
k =
9
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
1
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
2
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
3
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
4
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
5
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
6
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
7
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
8
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
9
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
10
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
11
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
12
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
13
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
14
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
15
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
16
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
17
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
18
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
19
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
20
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
21
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
22
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
23
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
24
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
25
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
26
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
27
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
28
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
29
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
30
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
31
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
32
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
33
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
34
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
35
Name Size Bytes Class Attributes
protProd 1x1 1828 struct
Name Size Bytes Class Attributes
modComb 36x2 576 double
i =
1
k =
36
Worker 8:
k =
1
Name Size Bytes Class Attributes
protProd 1x1 1616 struct
Name Size Bytes Class Attributes
modComb 4x1 32 double
i =
1
k =
2
Name Size Bytes Class Attributes
protProd 1x1 1616 struct
Name Size Bytes Class Attributes
modComb 4x1 32 double
i =
1
k =
3
Name Size Bytes Class Attributes
protProd 1x1 1616 struct
Name Size Bytes Class Attributes
modComb 4x1 32 double
i =
1
k =
4
Name Size Bytes Class Attributes
protProd 1x1 1612 struct
Name Size Bytes Class Attributes
modComb 4x1 32 double
i =
1
k =
1
Name Size Bytes Class Attributes
protProd 1x1 1612 struct
Name Size Bytes Class Attributes
modComb 4x1 32 double
i =
1
k =
2
Name Size Bytes Class Attributes
protProd 1x1 1612 struct
Name Size Bytes Class Attributes
modComb 4x1 32 double
i =
1
k =
3
Name Size Bytes Class Attributes
protProd 1x1 1612 struct
Name Size Bytes Class Attributes
modComb 4x1 32 double
i =
1
k =
4
Name Size Bytes Class Attributes
protProd 1x1 1612 struct
Name Size Bytes Class Attributes
modComb 4x1 32 double
i =
1
k =
1
Name Size Bytes Class Attributes
protProd 1x1 1612 struct
Name Size Bytes Class Attributes
modComb 4x1 32 double
i =
1
k =
2
Name Size Bytes Class Attributes
protProd 1x1 1612 struct
Name Size Bytes Class Attributes
modComb 4x1 32 double
i =
1
k =
3
Name Size Bytes Class Attributes
protProd 1x1 1612 struct
Name Size Bytes Class Attributes
modComb 4x1 32 double
i =
1
k =
4
Name Size Bytes Class Attributes
protProd 1x1 1616 struct
Name Size Bytes Class Attributes
modComb 4x1 32 double
i =
1
k =
1
Name Size Bytes Class Attributes
protProd 1x1 1616 struct
Name Size Bytes Class Attributes
modComb 4x1 32 double
i =
1
k =
2
Name Size Bytes Class Attributes
protProd 1x1 1616 struct
Name Size Bytes Class Attributes
modComb 4x1 32 double
i =
1
k =
3
Name Size Bytes Class Attributes
protProd 1x1 1616 struct
Name Size Bytes Class Attributes
modComb 4x1 32 double
i =
1
k =
4
Name Size Bytes Class Attributes
protProd 1x1 1492 struct
Name Size Bytes Class Attributes
modComb 3x1 24 double
i =
1
k =
1
Name Size Bytes Class Attributes
protProd 1x1 1492 struct
Name Size Bytes Class Attributes
modComb 3x1 24 double
i =
1
k =
2
Name Size Bytes Class Attributes
protProd 1x1 1492 struct
Name Size Bytes Class Attributes
modComb 3x1 24 double
i =
1
k =
3
Name Size Bytes Class Attributes
protProd 1x1 1492 struct
Name Size Bytes Class Attributes
modComb 3x2 48 double
i =
1
k =
1
Name Size Bytes Class Attributes
protProd 1x1 1492 struct
Name Size Bytes Class Attributes
modComb 3x2 48 double
i =
1
k =
2
Name Size Bytes Class Attributes
protProd 1x1 1492 struct
Name Size Bytes Class Attributes
modComb 3x2 48 double
i =
1
k =
3
Name Size Bytes Class Attributes
protProd 1x1 1576 struct
Name Size Bytes Class Attributes
modComb 3x1 24 double
i =
1
k =
1
Name Size Bytes Class Attributes
protProd 1x1 1576 struct
Name Size Bytes Class Attributes
modComb 3x1 24 double
i =
1
k =
2
Name Size Bytes Class Attributes
protProd 1x1 1576 struct
Name Size Bytes Class Attributes
modComb 3x1 24 double
i =
1
k =
3
Name Size Bytes Class Attributes
protProd 1x1 1576 struct
Name Size Bytes Class Attributes
modComb 3x2 48 double
i =
1
k =
1
Name Size Bytes Class Attributes
protProd 1x1 1576 struct
Name Size Bytes Class Attributes
modComb 3x2 48 double
i =
1
k =
2
Name Size Bytes Class Attributes
protProd 1x1 1576 struct
Name Size Bytes Class Attributes
modComb 3x2 48 double
i =
1
k =
3
Stephen
2022-7-6
This error message was below the above output
Error using scoreAllSpectra_spmd
Error detected on worker 5.
Error in batch (line 36)
calchit = scoreAllSpectra_spmd(pepfile, xmlfilepath, fragMode, MS1tol, MS1tolUnit, MS2tol, MS2tolUnit, OutputDir, OutputCSV, maxlag, CutOffMed, FracMax, nmFrag, npFrag, ngFrag, selectPeak, false, mzXMLfilename);
Caused by:
Error using glycanFrag
Index exceeds the number of array elements. Index must not exceed 8.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 GPU Computing in MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!发生错误
由于页面发生更改,无法完成操作。请重新加载页面以查看其更新后的状态。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom(English)
亚太
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)