Output argument "K" (and maybe others) not assigned during call to "linear_kernel".
    1 vue (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
    federico nutarelli
 le 5 Mai 2021
  
    
    
    
    
    Commenté : Star Strider
      
      
 le 5 Mai 2021
            Hi all,
the above error apears when I call 
K = linear_kernel(tX, tX);
It does not appear if I do not assign linear_kernel(tX,tX).
The function I am referring is:
function K = linear_kernel(x1,x2)
%LINEAR_KERNEL Build a linear kernel.
% Ensure that x1 and x2 are column vectors
x1 = x1(:); 
x2 = x2(:);
% Compute the kernel
K = x1' * x2;  % dot product
end
why does this happen?
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
				En savoir plus sur Adding custom doc dans Help Center et File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

