Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Why am I getting the error "Error using * Inner matrix dimensions must agree"? (details in the description)

1 回表示 (過去 30 日間)
Roshni gupta
Roshni gupta 2017 年 6 月 16 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I have a matrix Hie of 1*2700. I have to perform this, T=Mat * Hie; where Mat=randn(2000,2700) I am not sure, what value as the 1st argument i can take in randn function? I am getting this error "Error using * Inner matrix dimensions must agree" Please help me removing this error. And what dimension Can i take for random Matrix.

回答 (1 件)

Adam
Adam 2017 年 6 月 16 日
編集済み: Adam 2017 年 6 月 16 日
T = Mat * Hie';
will give you a 2000x1 result. Whether it is the one you want or not is another matter.

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by