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 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

0 Stimmen

LIP = repmat(temp(:),1,2);

Weitere Antworten (0)

Kategorien

Gefragt:

am 12 Mär. 2019

Kommentiert:

am 12 Mär. 2019

Community Treasure Hunt

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

Start Hunting!

Translated by