Matrix dimensions must agree error
Info
This question is closed. Reopen it to edit or answer.
Show older comments
Sir, I want to find TC where PA and TSR are the matrices of length
1 20
and
1 2
TC=0.08698-(0.003371).*PA-(0.053272).*TSR
where
size (TSR)
ans = 1 2
size (PA)
ans = 1 20
when i write the function TC , i get the error ''Matrix dimensions must agree ''. Please guide me , how to fix this error. Thankyou
3 Comments
Walter Roberson
on 21 Jul 2020
When you use a 1x20 and 1x2 to make the calculation, what size of result do you expect?
Asif Rashid
on 21 Jul 2020
Asif Rashid
on 21 Jul 2020
Answers (0)
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!