Thread Subject:
xlswrite in varying cells

Subject: xlswrite in varying cells

From: Chris

Date: 25 Nov, 2009 20:25:20

Message: 1 of 1

Dear matlab users,

I want to make an xlswrite in a varying area, specifically, I want to write some outputs on B1:D1, then B2:D2 unit B3000:D3000. I think I can do this with a loop but I don't know how exactly I should insert the "time varying" writing areas (B{i}:E{i}) in the xlswrite command,

An example which does not seem to work:

[res]=jump(y,3)

for i=1:3000
B{i}=strcat('B',num2str(i));
E{i}=strcat('E',num2str(i));
xlswrite('RESULTS',res,'ResultsSheet','B{i}:E{i}');
end

Thank you for your help


PS. the res variable is time varying too but I didn't show that in order to keep things simple, so in the above example the same output is written each time.

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us