Info

This question is closed. Reopen it to edit or answer.

how to add multiple rows into xlsx file???

1 view (last 30 days)
ajay Hiremath
ajay Hiremath on 30 Jan 2015
Closed: MATLAB Answer Bot on 20 Aug 2021
hello all.... can any one plz tell me how to add multiple rows into xlsx sheet,now m using this code.. values = {area(i),Length,width,Perimet(i),AspectRat,FormFact(i),Entropy,Contrast,Energy,stats1.Homogeneity,green,lumi}; headers = {'Area','Length','width','perimet','Aspectrat','Form_factor','Entropy','Contrast','Energy','homogen','Green','Lumin'}; xlswrite('extract.xlsx', [headers; values]);
but this is displaying only one row(last image value) this is overwriting the last value so response me soon,thank you.....
  5 Comments
Hikaru
Hikaru on 30 Jan 2015
Please format your code properly... I don't like having to read walls of unformatted text.
ajay Hiremath
ajay Hiremath on 30 Jan 2015
subplot(1,2,1),%imshow(im);
BW1=im2bw(rgb2gray(im7),0.35);
BW1=imfill(BW1,'holes');
BW1=imopen(BW1,ones(5));
subplot(1,2,2);%imshow(BW1,[0 1]);
[L,num]=bwlabel(BW1);
s=regionprops(L,'area','perimeter');
for i=1:num
area(i)=s(i).Area;
Perimet(i)=s(i).Perimeter;
FormFact(i)=4.*pi.*area(i)./(Perimet(i).^2);
disp(area(i));
disp(Perimet(i));
disp(FormFact(i));
end

Answers (0)

This question is closed.

Community Treasure Hunt

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

Start Hunting!