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 comentarios

KSSV
KSSV el 12 de Mzo. de 2019
What are dimensions of LIP, temp?
Anu  Sri
Anu Sri el 12 de Mzo. de 2019
LIP=[4 1]
temp=[2 2]

Iniciar sesión para comentar.

 Respuesta aceptada

madhan ravi
madhan ravi el 12 de Mzo. de 2019
LIP = repmat(temp(:),1,2);

Más respuestas (0)

Categorías

Más información sobre Animation en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 12 de Mzo. de 2019

Comentada:

el 12 de Mzo. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by