Hello, i'm beginner in matlab and i'm asking for help, can someone tell me the signification of this matlab syntax ?
function [output1, output2] = BagOfWords(input, mode, geneIndex, dataForCurrentGene)switch mode case 'init' data = input.data; nGenesOverall = input.nGenes; nFeatures = input.nFeatures; maxNumberOfComponents = input.maxNumberOfComponents; sparseMatrix = zeros(nGenesOverall,nFeatures); sparseVector = false(1,nGenesOverall); % Define the cluster structure
clusterStruct(1,maxNumberOfComponents) = struct(... 'nFeatures', [], ... 'nGenesOverall', [], ... 'beta', [], ... 'sumBeta',[],... 'nGenes', [], ... 'logMarginalLikelihood', [],... 'dataCounts', [], ... 'logicalGeneIDs', [], ... 'N', []);
I didn't understand if input is a simple argument of the function BagOfWords or it refers to requesting user input? Else, what do these instructions (example: nGenesOverall = input.nGenes ) mean ?
Best Answer