필터 지우기
필터 지우기

Matrix Kirchhoff's current rule problem

조회 수: 3 (최근 30일)
Go Detroit Lions
Go Detroit Lions 2018년 10월 11일
편집: madhan ravi 2018년 10월 11일
I'm trying to write a script file just to show the results or "current" as a column vector, I keep getting this error: Error using / Matrix dimensions must agree.
Error in RunFcn4 (line 10) current = a / b
My matrix is 6x6 so I'm not sure what this error means. %Solve the system of linear equations a = [ 1 1 1 0 0 0 0 -1 0 1 0 0 0 0 0 -1 1 0 0 0 -1 0 -1 1 0 -10 10 5 -15 0 -10 0 -10 0 0 -20];
b = [0 0 0 0 0 200]'; current = a / b

채택된 답변

madhan ravi
madhan ravi 2018년 10월 11일
편집: madhan ravi 2018년 10월 11일
current = a ./ b
Use element wise operation
  댓글 수: 1
madhan ravi
madhan ravi 2018년 10월 11일
If it solved your problem accept the answer if not let know what’s additionally required.

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

추가 답변 (1개)

Go Detroit Lions
Go Detroit Lions 2018년 10월 11일
When I enter current = a./b i get the following.
  댓글 수: 2
madhan ravi
madhan ravi 2018년 10월 11일
https://www.mathworks.com/help/index.html read the link especially under examples.
madhan ravi
madhan ravi 2018년 10월 11일
편집: madhan ravi 2018년 10월 11일
You forgot to accept the answer to your previous question

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by