How to overcome this error?
정보
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이전 댓글 표시
Error using vertcat
Dimensions of arrays being concatenated are not consistent.
Error in smoothmod (line 55)
RHOar = [RHOar.'; 0];
댓글 수: 0
답변 (2개)
Matt J
2020년 10월 13일
0 개 추천
RHOar is not a row vector, as you seem to expect it to be at line 55.
댓글 수: 1
madhan ravi
2020년 10월 13일
RHOar = [RHOar.'; zeros(size(RHOar.'))];
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!