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.

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