Can you help me about this problem?
Información
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Mostrar comentarios más antiguos
i don't understand error related vercat .
Respuestas (3)
dpb
el 17 de Dic. de 2014
0 votos
More than likely you've tried to append a row and a column vector. Either way, a vertical concatenation must have the same number of columns in all entities being concatenated, similarly horizontal concatenation requires equal number of rows.
Try size on the arguments in the line in question to see who's who and all will likely become clear.
1 comentario
Your two arrays D and H are being populated by vertical concatenation via the ";" operator.
You still don't provide the information required in detail but presuming all the various rNMX variables in the D array are, in fact, single values, I rearranged it well enough to check that there are 9 values/row so it looks like it's ok (again with the above caveat).
Hence one must presume that one (or more) of the row entries in H is not of the same length as all the others. Again, use size on each component therein and you'll find the location/variable that is the problem. debug is very useful for this particularly if this construct is in a function rather than in the workspace.
It ALWAYS helps to paste the full error message in context to help readers with actual debugging data rather than having to guess...
Thorsten
el 17 de Dic. de 2014
Lines like
r21y -r21x -r22y r22x 0 0 0 0 1;
have just 9 colums:
r21y -r21x -r22y
r22x
0
0
:
Use , to separate different colums:
r21y, -r21x, -r22y, r22x, 0, 0, 0, 0, 1;
La pregunta está cerrada.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!