How to store feature extracted data into 2d array

1 Ansicht (letzte 30 Tage)
I am try to store the output of the feature extracted data of image into 2d array. But the output is 55 numeric values. The output is printed line by line. How can I store this 55 numbers into 2d array. I put this output into one variable, from the variable to store the data into array format for storing into excel sheet. If the output is stored as same in excel, It cannot store in row format, It store in column format like presented output format.So how to store this data into 2d array. My code and my output is
x = imread(sprintf('E:/apps/project/TELUGU data/telugu sep/1/ (1).jpg'))
n = feature_extractor_2d(x);
output is
-0.4000
0.4000
0.6000
-0.2000
0.2600
0.3355
0.1685
0.2055
0.0317
0.2000
1.0000
0.8000
0.6000
0.6494
0
0.1481
0.1852
0.0206
0.8000
0.6000
0.4000
0.4000
0.1132
0.5556
0.1564
0.1564
0.0247
0.6000
0.6000
0.6000
0
0.5788
0.0731
0.1865
0.1404
0.0264
0.8000
0
0.6000
0.4000
0.0023
0.3949
0.3210
0.2564
0.0220
0.6000
0.6000
0.8000
0.6000
0.6488
0.1943
0.0374
0.1070
0.0285
1.0000
Can any one help me how to divide and store this type of data into array. Thank you
  4 Kommentare
KSSV
KSSV am 23 Mai 2016
Undefined function or variable 'discourser'.
Error in feature_extractor_2d (line 7) image=discourser(image);
Error in f (line 2) n = feature_extractor_2d(x);
sukhesh chukkapalli
sukhesh chukkapalli am 23 Mai 2016
Bearbeitet: sukhesh chukkapalli am 24 Mai 2016
sorry for the error I added total project file

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

sukhesh chukkapalli
sukhesh chukkapalli am 24 Mai 2016
x=cell(1,278);
n=cell(1,279);
for j=1:279
cellRef = sprintf('A%d:BC%d',j,j);
x{j} = imread(sprintf('E:/telugu sep/2/(%d).jpg',j))
n{j} = feature_extractor_2d(x{j});
xlswrite('2.xls',n{j},'myResult',cellRef);
end

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by