I would like to see the scaling (\alpha) of my curve f(x,y): x^\alpha
Thus, I need to fit my data to a curve but I cannot use the function polyfit as the value of \alpha could be any value between 0 and 2, and I receive the error message:
Index in position 2 is invalid. Array indices must be positive integers or logical values.
Is there any direct method to do this in Matlab?
Thanks in advance!