I cant solve this "Error using horzcat Dimensions of matrices being concatenated are not consistent." please help im new to MATLAB
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Here is my code:
%This line of code will open a file dialog for image input%
clc;
close all;
[fname, path]= uigetfile ('.JPG','Open Image for training','Open Image file');
fname = strcat(path,fname);
im = imread(fname);
imshow(im);
title ('Input Image');
c = input ('Enter Class for this image(Enter number from 1 to 10)');
%%Feature Extraction
F = FeatureStatistical(im);
try
load db;
F = [F c];
db = [db;F];
save db.mat db
catch
db = [F c];
save db.mat db
end
If I try to run it I got this error:
Error using horzcat
Dimensions of matrices being concatenated are not consistent.
Error in Module1_training (line 19)
db = [F c];
I have 1x2x3 double for my F and 1 for c.
Please Help me.
0 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!