matrix dimensions must agree. please help!!

1 vue (au cours des 30 derniers jours)
ji hyn lee
ji hyn lee le 21 Fév 2019
Commenté : ji hyn lee le 21 Fév 2019
thank you very much!!
  2 commentaires
Yasasvi Harish Kumar
Yasasvi Harish Kumar le 21 Fév 2019
Hi,
Whats the matrix dimension of h?
Regards
madhan ravi
madhan ravi le 21 Fév 2019
Picture is never useful than an actual code.

Connectez-vous pour commenter.

Réponse acceptée

Asad Mirza
Asad Mirza le 21 Fév 2019
Modifié(e) : Asad Mirza le 21 Fév 2019
Looks like z is a 3x1 vector while h evaluates to a 2x1 vector since Dv is 3x2 and v is 3x1 which forces the resulting division to be 2x1.
You cannot add a vector of 3 indices to one with 2.
It looks like you do not use k in your function anywhere, an easy fix would be to make z = [x0;y0]; and just remove k0.
  1 commentaire
ji hyn lee
ji hyn lee le 21 Fév 2019
thank you for the tip! but the problem is that i have to use k and make this to 3x1..
I am trying to solve for this!Capture2.PNG

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Logical 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!

Translated by