I have written a program for automatic scoring for some CAD images. The problem I am currently facing is I am not able to export the name of the image file and the corresponding score to the same Excel worksheet. I have attached my code below. Also the string data in 'f' is not being stored in a single cell. How to do that ?
% Grade Multiple Files at Once
clc;clear all;Dir = 'C:\Users\Sanchit\Desktop\IDETC - Copy\Models\Flange\2D'; % Read images from Images folder
files = dir(fullfile(Dir, '*.png'));for j=1:length(files) Img = imread(fullfile(Dir, files(j).name)); % Read images from folder
I(j)=Flangenew(Img); % Grade files in the folder
endf=[files(:).name]'xlswrite('results', I');xlswrite('filenames',f);
Best Answer