Im trying to multiply a Matrix by its first column. I have tried this code:
A = imread('cameraman.tif');
x0 = A(:,1);
y = A*x0;
But I get the following error:
Error using * MTIMES is not fully supported for integer classes. At least one input must be scalar. To compute elementwise TIMES, use TIMES (.*) instead.
and when I change my code to: y = A.*x0; again I get:
Error using .* Matrix dimensions must agree.
When I use whos command, I get this:
A is a 256x256 Matrix and x0 is a 256x1 matrix. I dont know whats wrong with my code.