%taking an image
clc;close all;[fname,path]=uigetfile('.jpg','open a face as input for training');fname=strcat(path,fname);im=imread(fname);imshow(im);title('inputface');c=input('Enter the class (number from 1-10)');%%feature Extraction
F=FeatureStatistical(im);try load db; F=[F c]; db=[db;F]; save db.mat dbcatch db=[F c]; save db.mat dbend*2nd file*function [F]=FeatureStatistical(im)im=double(im);m=mean(mean(im));s=std(std(im));F=[m s];
MATLAB: How to remove this error : Error using horzcat Dimensions of matrices being concatenated are not consistent.
error horzcat
Best Answer