Info

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

Dimensions of matrices being concatenated are not consistent.

1 回表示 (過去 30 日間)
heulwen
heulwen 2020 年 6 月 19 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Here is my code. a b q and r values ​​are given in the question. So I can't change them, but it gives error in line 3.(codes drawn in red 3 and 4). This topic has been opened many times before. As far as I understand this error has to do with rows and columns. But as I said, the rows and columns are given in the question and I can't change them. Can you help me? Thanks.

回答 (1 件)

Rasul Khan
Rasul Khan 2020 年 6 月 19 日
If you take a close look you can see there are 3 rows in Q with 8 elements in the first row and 4 on subsequent rows. But MATLAB doesn't support variable columns in matrices. This will give an error in line 3 which i see you've already mentioned. So if that part is the question and you can't change that part you could simply report that there's an error in the question.
I hope this helps.
  1 件のコメント
heulwen
heulwen 2020 年 6 月 20 日
thank you

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

Community Treasure Hunt

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

Start Hunting!

Translated by