When reading an image, the inputs considered for polyfit are different types. one is "uint8" while the other is "double" (their size is the same, <1x384>) Could you please give me a hint that how I can solve it?
its errors are shown below while I haven't used TIMES in polyfit:
Error using * MTIMES is not fully supported for integer classes. At least one input must be scalar. To compute elementwise TIMES, use TIMES (.*) instead.
Error in polyfit p = R(Q'*y); % Same as p = V\y;
How Can I convert it to unit8? (in other case, its result is not adequate for my script)
doubleorunit8. - Buck Thorn