Subscripted assignment dimension mismatch

Basic question about MATLAB programming
Post Reply
matlab1
Site Admin
Posts: 4797
Joined: Thu Dec 15, 2016 9:30 am
Contact:

Subscripted assignment dimension mismatch

Post by matlab1 »

t
matlab1
Site Admin
Posts: 4797
Joined: Thu Dec 15, 2016 9:30 am
Contact:

Re: Subscripted assignment dimension mismatch

Post by matlab1 »

The solution for this error is that ,

pay attention to the number of rows and columns in the matrix of your command.

For example

A(2,:) = B

If the number of columns of A and B are not same, generate this error.
Because you are filling the second row of A with B.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests