Why do I get the error “Error using vertcat Dimensions of arrays being concatenated are not consistent.”?

조회 수: 1 (최근 30일)
Can anybody help me with this?
I try to get data from an SQL database but only get this error (see attachment).
Best regrads
  댓글 수: 2
KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 10월 31일
편집: KALYAN ACHARJYA 2019년 10월 31일
Please make a little effort to attach the representation code (not screenshot)?
Adam Danz
Adam Danz 2019년 11월 1일
When you vertically concatenate A and B the number of columns in A and B must match. In your case, they do not. That's the best answer you'll get with the limited data you've shared.

댓글을 달려면 로그인하십시오.

답변 (1개)

Julian
Julian 2019년 11월 1일
Could it be that your variable strHH is not a row vector char array?
I find it useful to define sql statement in a separate literal with a string column vector, so you can read it clearly but without all the ... continuations
sql = ["select * "
"from dual "
"order by dummy"]
sql = join(sql, newline)
exec(conn, sql, ...

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by