Error using * Inner matrix dimensions must agree.
Show older comments
error in matrix
7 Comments
Walter Roberson
on 17 Jan 2019
houssem alimi
on 17 Jan 2019
Walter Roberson
on 17 Jan 2019
Edited: Walter Roberson
on 17 Jan 2019
Please explain what your tag of tjks signifies. Does it have something to do with toxicity? Is it a topic in graph theory ? Does it stand for "Tertiary Jittered Kalman Scenting" ?
houssem alimi
on 17 Jan 2019
Walter Roberson
on 18 Jan 2019
Perhaps it would make sense to simply use the tag "matrix dimensions must agree", and to remove tjks as I suspect tjks will not mean anything to anyone other than you.
Tags are like topic indexes for card catalogs.
houssem alimi
on 18 Jan 2019
Walter Roberson
on 18 Jan 2019
dbstop if error
run the code. when it stops look at the sizes of all of the variables involved and extract portions of the expression until you figure out which multiplication is triggering the error and what the sizes are of the left and right. Then you trace backwards in the code to figure out why they got to be that size.
Accepted Answer
More Answers (0)
Categories
Find more on Functions 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!