Info
此问题已关闭。 请重新打开它进行编辑或回答。
How to overcome this error?
1 次查看(过去 30 天)
显示 更早的评论
Error using vertcat
Dimensions of arrays being concatenated are not consistent.
Error in smoothmod (line 55)
RHOar = [RHOar.'; 0];
0 个评论
回答(2 个)
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
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!