how to resolve subscript mismatch error?

21 Ansichten (letzte 30 Tage)
Anu  Sri
Anu Sri am 12 Mär. 2019
Kommentiert: Anu Sri am 12 Mär. 2019
Subscripted assignment dimension mismatch (size [1 x 1] ~= size [:? x 1]).
LIP(:, 1) = temp(:);
temp = temp';
LIP(:, 2) = temp(:);
  2 Kommentare
KSSV
KSSV am 12 Mär. 2019
What are dimensions of LIP, temp?
Anu  Sri
Anu Sri am 12 Mär. 2019
LIP=[4 1]
temp=[2 2]

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

madhan ravi
madhan ravi am 12 Mär. 2019
LIP = repmat(temp(:),1,2);

Weitere Antworten (0)

Kategorien

Mehr zu Animation finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by