Why do I get the error “Error using vertcat Dimensions of arrays being concatenated are not consistent.”?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
KALYAN ACHARJYA
am 31 Okt. 2019
Bearbeitet: KALYAN ACHARJYA
am 31 Okt. 2019
Please make a little effort to attach the representation code (not screenshot)?
Adam Danz
am 1 Nov. 2019
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.
Antworten (1)
Julian
am 1 Nov. 2019
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, ...
0 Kommentare
Siehe auch
Kategorien
Mehr zu Database Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!