"Error using /. Matrix Dimensions must agree." (Tried both / and ./)
2 views (last 30 days)
Show older comments
Luis on 16 Nov 2022
Answered: Navya Singam on 21 Nov 2022
Not sure why I am getting this error. I read through the explanation that the Matlab helper gives you, but I am still confused. Here is my code so far:
Error using /
Matrix dimensions must agree.
I am very new to Matlab so any additional details are welcomed. Thank you!
Torsten on 16 Nov 2022
d31eff = -d31 ./ ( log(1-a) .* (1./a - 0.5) )
Navya Singam on 21 Nov 2022
Changing this line of code wil resolve the issue.
You can refer to the following documenatations to understand more on the array operations and rdivide.
Find more on Operators and Elementary Operations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!