フィルターのクリア

How to use concatenation of values?

1 回表示 (過去 30 日間)
Tousif Ahmed
Tousif Ahmed 2017 年 7 月 15 日
コメント済み: Tousif Ahmed 2017 年 7 月 15 日
i have a variable in which i have stored all the values which i obtained after performing HOG feature extraction and in other variable i have stored values obtained after performing Gabor filter feature extraction. Now i need to concatenate those two variables to a single variable and give it as a single input to the neural network. Can anyone help me please?
  2 件のコメント
KSSV
KSSV 2017 年 7 月 15 日
編集済み: KSSV 2017 年 7 月 15 日
What are the dimensions of each? Read about horzcat and vertcat.
Tousif Ahmed
Tousif Ahmed 2017 年 7 月 15 日
one is 72x400 and the other is 486x400. Having the name of the variables as input and input2 respectively

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

採用された回答

Walter Roberson
Walter Roberson 2017 年 7 月 15 日
features = [input; input2];
  3 件のコメント
Walter Roberson
Walter Roberson 2017 年 7 月 15 日
filestruct1 = load('FirstFile.mat');
filestruct2 = load('SecondFile.mat');
combined = [filestruct1; filestruct2];
save('Result', 'combined', '-struct');
This assumes that there are no variable names in common. If there are variable names in common then you need to define the dimension number that they should be concatenated along, and need to define what you want to happen for variables of types that cannot be concatenated (for example, function handles.)
Tousif Ahmed
Tousif Ahmed 2017 年 7 月 15 日
Thank You Sir

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by