I have a cell array:
results = {5,2};
that is:
results = [1x5 double] [1x1 prob.NormalDistribution ] [1x5 double] [1x1 prob.tLocationScaleDistribution] [1x5 double] [1x1 gmdistribution ] [1x5 double] [1x1 gmdistribution ] [1x5 double] [1x1 struct ]
so there is 5 vectors made of 5 doubles (but the number of vectors is not important). Writing something like:
results{3,1}(2) = 3;
there are no problems: the second place of the third vector of the "first column" of the cell array becomes equal to 3.
My purpose is to compute the minimum value of the fifth places of all the vectors (in the first column of the cell array)
I have tried with:
lower = min(results{:,1}(5));
And it gives:
Bad cell reference operation.
I have tried very different ways to obtain something, but always the same error.
Is there a simple solution to my problem? Thank you in advance
Best Answer