Eigenvalues for vector inputs..?
Afficher commentaires plus anciens
Hi everyone,
I have two vectors of experimental data which I believe are linearly related (within a close tolerance). I would like to determine the linear coefficients [m,b] that transform vector A to vector B:
vB = m .* vA + b
This is a classic eigenvalue problem, isn't it? I checked out the MATLAB documentation for function eig(), but eig() requires two square matrices as input. I'm not seeing how to recast my problem.
Here's a simple example:
>>vA = rand(10,1);
>>vB = (1.5 .* vB) + 0.5;
What function of vA & vB returns [0.5,1.5], or [1.5,0.5] ..?
Thanks, Brad
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Linear Algebra dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!