Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

i have a datset name as dec_table (150,5) and a new_att(150,1) and i want to combine these two to make new_dec_table?

1 visualización (últimos 30 días)
new_dec_table = cat(2,new_att,dec_table);
error:
Error using cat
Dimensions of matrices being
concatenated are not consistent.
Error in iris_rough3 (line 41)
new_dec_table =
cat(2,new_att,dec_table);

Respuestas (1)

Sai Bhargav Avula
Sai Bhargav Avula el 29 de Oct. de 2019
Editada: Sai Bhargav Avula el 29 de Oct. de 2019
Hi, In your case horzcat would work.
Try
new_dec_table = horzcat(new_att,dec_table)
This would concatenate horizontally as your data has row consistency

Community Treasure Hunt

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

Start Hunting!

Translated by