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 件のコメント

KSSV
KSSV 2019 年 3 月 12 日
What are dimensions of LIP, temp?
Anu  Sri
Anu Sri 2019 年 3 月 12 日
LIP=[4 1]
temp=[2 2]

サインインしてコメントする。

 採用された回答

madhan ravi
madhan ravi 2019 年 3 月 12 日

0 投票

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

1 件のコメント

Anu  Sri
Anu Sri 2019 年 3 月 12 日
it worked..thankyou!! :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeAnimation についてさらに検索

質問済み:

2019 年 3 月 12 日

コメント済み:

2019 年 3 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by