フィルターのクリア

Error using vertcat Dimensions of arrays being concatenated are not consistent.

1 回表示 (過去 30 日間)
Hi everyone. I need to use SVM for prediction. hence, i need to combine my data
data1= 22x 7
data2 = 22 x 8
I dont know how to combine these two data . I used data3=[data1;data2], it does not work . Giving the error mentioned in title

採用された回答

the cyclist
the cyclist 2021 年 6 月 5 日
data3 = [data1 data2]
will concatenate them horizontally rather than vertically. You can do that, because they have the same number of rows. You cannot do your way, because they do not have the same number of columns.
  1 件のコメント
nurin noor
nurin noor 2021 年 6 月 6 日
Hi cyclist! That works perfectly fine! Thank you so much!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by