'Finding an Error in matlab while doing homography via DLT

Unable to perform assignment because the size of the left side is 1-by-9 and the size of the right side is 1-by-12.

I get this error when I start a loop for assigning and calculating values in MATLAB. Below is a screenshot of the function.

enter image description here



Solution 1:[1]

A needs to be declared as 12 x 12. You have it set as 12 x 9.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 rayryeng