hello everyone, does anyone knows what does the con{}. means in the following codes?
1 view (last 30 days)
Show older comments
Dmax = 20;
Dmin = 3;
a = 100;
b = 100;
Smax = 100;
N = 1;
Aa = 0.05;
I = 1;
t = 0;
e = 0.9;
n_max = 10000;
con{I}.dmin = Dmin;
con{I}.dmax = Dmax;
con{I}.smax = N;
con{I}.t = t;
con{I}.e = e;
con{I}.length = a;
con{I}.width = b;
con{I}.fillrate = Aa;
con{I}.n = 0;
2 Comments
Stephen23
on 22 Jul 2018
See:
Most likely using a non-scalar structure would be better than a cell array:
Image Analyst
on 22 Jul 2018
I second that. A structure array would be better than a cell array. There is no reason to use a cell array from what I can see here. A structure array would be simpler.
Answers (1)
Image Analyst
on 21 Jul 2018
con is a cell (not really a cell array yet because there's only one cell). Inside the cell is a structure with the fields shown.
0 Comments
See Also
Categories
Find more on Matrices and Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!