MATLAB: Unable to perform assignment because the left and right sides have a different number of elements.

assignmentselements

Unable to perform assignment because the left and right sides have a different number of elements. i have this error on a(t)=a; at the end , please help to fix it?
See the attached script file for code.

Best Answer

you are setting an element, a(t) to be equal to your entire matrix a.
Not sure what you are trying to do, please reformat your question so it's easier to look at.