필터 지우기
필터 지우기

matrix dimensions must agree. please help!!

조회 수: 1 (최근 30일)
ji hyn lee
ji hyn lee 2019년 2월 21일
댓글: ji hyn lee 2019년 2월 21일
thank you very much!!
  댓글 수: 2
Yasasvi Harish Kumar
Yasasvi Harish Kumar 2019년 2월 21일
Hi,
Whats the matrix dimension of h?
Regards
madhan ravi
madhan ravi 2019년 2월 21일
Picture is never useful than an actual code.

댓글을 달려면 로그인하십시오.

채택된 답변

Asad Mirza
Asad Mirza 2019년 2월 21일
편집: Asad Mirza 2019년 2월 21일
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
ji hyn lee
ji hyn lee 2019년 2월 21일
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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by