Prev: Correctly passing/using variable in sub-level of Simulink model?
Next: Concat string to cell array of strings
From: Dave on 30 Jun 2010 14:11 Hi, I tried to write into an excel file a series of values.They have to be in such a way that set1 values are in first column,set2 values in second column and so on.So that I can make calculations easily(which is my intention).But the result is with bad alignment. Could any one suggest me how to do this. Another query related to images. Can I append a value to a blob in an image?.I mean say an image has random shapes or regions and my plan is to stick the number of pixels of that region on it."Like a name on a blackboard". regards, Dev.
From: Andy on 30 Jun 2010 14:18 "Dave " <dbrucedev(a)gmail.com> wrote in message <i0g1bq$4gl$1(a)fred.mathworks.com>... > > Hi, > > I tried to write into an excel file a series of values.They have to be in such a way that set1 values are in first column,set2 values in second column and so on.So that I can make calculations easily(which is my intention).But the result is with bad alignment. > Could any one suggest me how to do this. > > Another query related to images. > Can I append a value to a blob in an image?.I mean say an image has random shapes or regions and my plan is to stick the number of pixels of that region on it."Like a name on a blackboard". > > regards, > Dev. The easiest way to write your data to Excel would be to calculate ALL of it first, and write to Excel once. If you really must write column by column, there is an argument to xlswrite that lets you specify the exact range to write to. So you can write to the particular column you want that way.
From: ImageAnalyst on 30 Jun 2010 15:22
Dev. 1. Not sure what you mean by alignment. If you want to change the alignment (left, centered, right, etc.) then you have to use ActiveX calls, not the simplistic xlswrite(). If data are going into rows, and you want columns, transpose your data with the ' operator. 2. Sure. Just see my demo where I find objects and put a number (in a text string) at the centroid of each object. http://www.mathworks.com/matlabcentral/fileexchange/25157 -Image Analyst |