Matrix Kirchhoff's current rule problem
4 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
madhan ravi
2018-10-11
编辑:madhan ravi
2018-10-11
current = a ./ b
Use element wise operation
1 个评论
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
2018-10-11
2 个评论
madhan ravi
2018-10-11
https://www.mathworks.com/help/index.html read the link especially under examples.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!