Today someone who read my post on sinc interpolation in MATLAB e-mailed me to ask about how to interpolate between data points in MATLAB to do accurate zero-crossing detection. Here, I summarize my response. Detecting zero crossings of (nearly) square waves that are sampled is difficult to do accurately because it pushes the limits of the "band-limited" signal approximation we use when sampling. That being said, if you’d like to use sinc interpolation , you should decide *HOW* close you need to be to the zero crossing. For example, your original signal might have 50 picoseconds between samples, and so without interpolation, you can detect zero crossings accurate within 50 picoseconds (ps). Maybe you need a closer result. How close do you need to be? 10ps? 5ps? 1ps? Less than that? Figure out how close you need to be and then generate the appropriate upsampled time vector: uptime = 0:step_size:final_time; where step_size is your tolerance (e.g., ...
Content suppressed by ://URLFAN, for full article visit source
Vim-LaTeX, Vim 7.0, and the filetype pluginFrom: phaseportrait.blogspot.com
Post Date: 2008-03-05 03:30:00
It’s strange to me that this isn’t better documented. On the other hand, Vim-LaTeX hasn’t been maintained for AGES... If you’re using Vim-LaTeX with Vim 7 or higher, you should make sure you have this somewhere in your .vimrc : " Prevents Vim 7.0 from setting filetype to ’plaintex’ let g:tex_flavor=’latex’ Otherwise, your .tex files will not automatically kick off vim-latex on opening! So, if you’re having problems getting Vim-LaTeX ...
more Because it drives me nuts...From: phaseportrait.blogspot.com
Post Date: 2008-03-12 06:21:00
From xkcd/394 : On a serious note, "kB" is "kilobyte" and "kb" is "kilobit." An uppercase "K" is "Kelvin," and so it should never be paired with either "B" or "b". For most modern machines, a "B"yte is 8 "b"its, but there is NO GOOD REASON to assume this case. The meaning of "kilo" is context-dependent, though it’s computationally convenient to use 1024 rather than the standard 1000 (because computers address things in base-2)....
more Snow Wall in Columbus, Sno-hioFrom: phaseportrait.blogspot.com
Post Date: 2008-03-10 06:54:00
If you didn’t hear, over Friday night and Saturday morning, 20 inches of snow were dumped on Columbus, OH. That made driving a little rough Saturday, but the main roads cleared up substantially Sunday. Nevertheless, nearly every school is closed today and Ohio State sent out an e-mail warning people that parking might be a little hairy today. So, I came to work early this morning not knowing what to expect. After previous big snow weekends, the parking lot would get a little smaller becau...
more