Skip to content

{ Category Archives } Projects

Record Deletion Update

As I thought, by changing the code to copy the good records rather than trying to delete the bad ones is a million times faster.  The 20 second code from yesterday is now down to 8 seconds.  Now the real possible combination sorting isnt even on the profiler any more, its that fast.  The slowest [...]

More Speed!

Found something very interesting with the profiler. In the file “Find_Best_Combination.m”, line 56, there is the code:
Possible_Combinations(Temp_Index,:) = [];
Line 56: Possible_Combinations(Temp_Index,:) = []; 220223 Calls, 7.095 s
So basically it takes for ever to delete a record that is in the middle of a set of data. Maybe instead of deleting a record, I [...]

New Working Multilateration routines

Note: What I do need to do is create some new tests to see if we are actually capturing the correct drop pulses, or just collecting combinations of pulses and pretending they are a drop. Causing not 1, but 2 gross errors in the data. I might leave this until we start writing [...]

Full wave rectification

Just looking into some full wave rectification without diodes and I have so far found 2 ways. One with 2 op amps, quite costly, or one promising one with just a transistor:

I do like the look of this, might be right up my street. It does look slightly jubious, but its worth a [...]

Update: Interactive Light Idea

I found this that is essentially what I thought of the other day, bastards, always knick my ideas (One must admit that they had the idea months ago :D). I personally think that mine would be better though, because it looks like they are using modulated IR face up to detect when someone goes [...]

Quick Software Update

Ive recently been playing with a new analytical solution to the multilateration problem, but its complicated and I dont fully understand the maths behind it yet because it was Kevin’s work, not mine.  Ive been implementing it into the disdrometer simulation software but results are poor so far.  The largest problem is that the principle [...]

Quick thoughts on the Ultrasonic Phased Array Project

Just been doing some bored research again, and I came accross this image:

This would be a good route to investigate when I do get it up and running. I Could initially scan for objects, then focus in using this technique. First seen here but there must be other sources out there. Hence, [...]

First Rain Data

Im in the middle of writing the Optical Disdrometer data sorting code, and I have managed to get the first image out of it.  Excel looks the best, but damn, why didnt Microsoft add an “export current chart to image” function.  I had to find some VBA and put it in a macro.
The code needs [...]

Algorithm Comparison

Suprise result here.  Drum roll please….
It turns out that the FMinSearch algorithm was the quickest by about a factor of 2!  Finally got the lsqnonlin function working by messing with the options.  The profiles of the results are shown below:
FMinSearch Profile (2.189s)
FMinUnc Profile (4.355s)
LSqNonLin Profile (3.577s)
mmFSolve Profile (Custom user’s file) (5.814s)

Slight Speed Increase

Speeded up the code slightly (0.2s to be exact) by changing the peak detection routine.  This new one has come from a PDF entitled “Writing Fast Matlab Code” by Pascal Getreuer in 2006.  Below are a local copy of the PDF and the profiles of the slower and faster code.
Writing Fast Matlab Code PDF
Slower Peak [...]