Info

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

How to overcome this error?

1 回表示 (過去 30 日間)
Nisar Ahmed
Nisar Ahmed 2020 年 10 月 13 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Error using vertcat
Dimensions of arrays being concatenated are not consistent.
Error in smoothmod (line 55)
RHOar = [RHOar.'; 0];

回答 (2 件)

Matt J
Matt J 2020 年 10 月 13 日
RHOar is not a row vector, as you seem to expect it to be at line 55.
  1 件のコメント
madhan ravi
madhan ravi 2020 年 10 月 13 日
RHOar = [RHOar.'; zeros(size(RHOar.'))];

Sudhakar Shinde
Sudhakar Shinde 2020 年 10 月 13 日
%Example:
a=[1 2 3 4]
B= [a;0]
%This throws an eroor as you mentioned
%Correct concatenation
B=[a,0]
%or
B=[a';0]
  1 件のコメント
Sudhakar Shinde
Sudhakar Shinde 2020 年 10 月 13 日
if this throws error :
RHOar = [RHOar'; 0];
you could try:
RHOar = [RHOar; 0];

Community Treasure Hunt

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

Start Hunting!

Translated by