how to resolve subscript mismatch error?

Subscripted assignment dimension mismatch (size [1 x 1] ~= size [:? x 1]).
LIP(:, 1) = temp(:);
temp = temp';
LIP(:, 2) = temp(:);

2 Comments

What are dimensions of LIP, temp?
LIP=[4 1]
temp=[2 2]

Sign in to comment.

 Accepted Answer

More Answers (0)

Categories

Asked:

on 12 Mar 2019

Commented:

on 12 Mar 2019

Community Treasure Hunt

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

Start Hunting!