| 123456789101112 | function sim = linearKernel(x1, x2)%LINEARKERNEL returns a linear kernel between x1 and x2%   sim = linearKernel(x1, x2) returns a linear kernel between x1 and x2%   and returns the value in sim% Ensure that x1 and x2 are column vectorsx1 = x1(:); x2 = x2(:);% Compute the kernelsim = x1' * x2;  % dot productend
 |