why i'm getting this error?

this error : Subscripted assignment dimension mismatch.

2 Comments

What is t ?
i update the question

Sign in to comment.

 Accepted Answer

This line
m(i,:) = a0 + ...
The LHS references 500 elements (because m has size 4x500), whereas the RHS has size 1x2500 (because t has size 1x2500). How do you expect to put 2500 elements into 500?

More Answers (0)

Asked:

on 25 Mar 2018

Edited:

on 25 Mar 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!