Filter löschen
Filter löschen

how to resolve subscript mismatch error?

1 Ansicht (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)

Community Treasure Hunt

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

Start Hunting!

Translated by