I have a problem trying to code these two programs, one is related to the obtain the fractal dimension of the Koch curve by using the method of the box counting dimension and also using the Grassberger-Procaccia algorithm
For the box counting dimension is just the lim N(l)/l as l goes to zero, so first I should generate a meshgrid of the Koch curve and count the number of filled boxes, how I do that in matlab?
For the Grassberger Procaccia or correlation dimension I have reviewed the formula, but no idea how to implement it
The Attempt at a Solution
I have not really a code to follow here, so any help it would be great