re-arranging data into a matrix
Actually you can do it very easily. Please realize that your dates are now unique numbers. 20 million, 90 thousand 102 and so on. The best way would be reading your data into a 2-column matrix, very similar to what you have written [I will call this matrix A]. Then, you should do: uniqueDates = unique(A(:,1)); ... 19 Feb 2010 21:05
re-arranging data into a matrix
I need to organise a large file of data that appears like Date obs 20090102 900 20090102 600 20090102 800 20090102 800 20090102 700 20090103 650 20090103 900 20090103 840 20090104 100 20090104 1000 20090104 600 20090104 450 How can I transform the data to look like the following matrix: ... 19 Feb 2010 19:58
Constrain imdistline endpoints to two lines
Hi I need to measure the distance between two lines on an image. I'd like to use imdistline, but I need to constrain it a few ways that I am not seeing how to do. I'd like to constrain imdistline to be exactly vertical. I can MEASURE the angle, but I don't see a way to constrain the angle. I'd like to constr... 19 Feb 2010 19:58
error with "Indexing cannot yield multiple results"
after reading an image to a variable A, I met an error of "Indexing cannot yield multiple results" when I want to assign the r, g, b components to 3 varaiables like: [r,g,b] = A(1,1,:) ================== due it's a long loop, so I want to save the r,g,b components to speed up the function. Is there any way for... 20 Feb 2010 12:24
Portable Excel files using Spreadsheet Link EX
I built a basic software package that uses MATLAB routines and an Excel spreadsheet user interface with Spreadsheet Link EX acting as middle-man. It works great for me, but moving it to another computer is always a headache. In a cell where I might have a link function like =MLPutMatrix("var", B2), on another machi... 19 Feb 2010 15:29
Removing a row from a matrix
"Ken Hennings" <kghennings(a)yahoo.com> wrote in message <hlmm01$gfm$1(a)fred.mathworks.com>... I have a small code that counts the number of zeroes found in a matrix. I would like to write a code that will remove a row if a zero is found in a column. Is there a Matlab command that will help me remove a row containing... 19 Feb 2010 14:22
optimization algorithms
I optimize a function (log likelihood) with interior point and active set algorithms. I observed a very strange behaviour today. For exactly the same initial values, options and of course function, the two algorithms gave totally different results in iter number zero. Lets assume that the initial values are x0. If ... 23 Feb 2010 11:17
Help for create a database
The problem of me is how to create a database for storing the images while i also can set the name of the images. Any help would be greatly appreciated. Thanks. ... 19 Feb 2010 14:22
How to make an animated gif of multiple plots
Hi all, Is anyone here familiar with making gifs from simple plots? I only see examples online of varying peaks and nulls on a plane. http://www.mathworks.com/matlabcentral/fileexchange/21944-animated-gif However, I don't want a 3D plot.. I just want a simple 2D. Here's an example of what I've come up with... 23 Feb 2010 13:33
Removing a row from a matrix
I have a small code that counts the number of zeroes found in a matrix. I would like to write a code that will remove a row if a zero is found in a column. Is there a Matlab command that will help me remove a row containing a zero? ... 19 Feb 2010 14:22