How to use concatenation of values?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Tousif Ahmed
le 15 Juil 2017
Commenté : Tousif Ahmed
le 15 Juil 2017
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 commentaires
Réponse acceptée
Walter Roberson
le 15 Juil 2017
features = [input; input2];
3 commentaires
Walter Roberson
le 15 Juil 2017
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.)
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!