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 commentaires

KSSV
KSSV le 12 Mar 2019
What are dimensions of LIP, temp?
Anu  Sri
Anu Sri le 12 Mar 2019
LIP=[4 1]
temp=[2 2]

Connectez-vous pour commenter.

 Réponse acceptée

madhan ravi
madhan ravi le 12 Mar 2019
LIP = repmat(temp(:),1,2);

Plus de réponses (0)

Catégories

En savoir plus sur Animation dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by