Azzera filtri
Azzera filtri

how to resolve subscript mismatch error?

1 visualizzazione (ultimi 30 giorni)
Anu  Sri
Anu Sri il 12 Mar 2019
Commentato: Anu Sri il 12 Mar 2019
Subscripted assignment dimension mismatch (size [1 x 1] ~= size [:? x 1]).
LIP(:, 1) = temp(:);
temp = temp';
LIP(:, 2) = temp(:);
  2 Commenti
KSSV
KSSV il 12 Mar 2019
What are dimensions of LIP, temp?
Anu  Sri
Anu Sri il 12 Mar 2019
LIP=[4 1]
temp=[2 2]

Accedi per commentare.

Risposta accettata

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

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by