Hi! Welcome...

One day there will be something interesting here. Today is not that day, but at least there is a bit more than there used to be...

2 January 2010 View Comments

Matlab Tips in Signal Processing

Moving average filter
To compute an N-sample moving average of x with zero padding:
y=filter(ones(N,1)/N,1,x);
For large N, it is faster to use

x = [1:0.2:4]‘;
N = 5;
windowSize = 5;
y1 = filter(ones(1,N)/N,1,x);

y2=cumsum(x)/N;
y2(N+1:end)=y2(N+1:end) – y2(1:end-N);

Locating zero-crossings and extrema
To obtain the indices where signal x crosses zero:

i=find(diff(sign(x))); % The kth zero crossing lies between x(i(k)) and x(i(k)+1)

Linear interpolation [...]

Tags: ,
2 January 2010 View Comments

Music Video 好听的歌 陈楚生

Music Video 好听的歌 陈楚生

1.
陈楚生 《寻找》 MV

2.
陈楚生《有没有人告诉你》MV

Tags:
2 January 2010 View Comments

How to use Find command in Unix / Linux

The find command is used to locate files on a Unix or Linux system. find will search any set of directories you specify for files that match the supplied search criteria. You can search for files by name, owner, group, type, permissions, date, and other criteria. The search is recursive in that [...]

1 January 2010 View Comments

hitec (LaTeX document class)

I love LaTeX. It’s my preferred tool whenever I need to write a document in English. But it had one little problem: The documents it generated, even though beautifully typeset, had an academic look. For someone who submits the documents to hitec companies, an engineering-like look was more appealing.
So I wrote my own document [...]

1 January 2010 View Comments

How to Install Python as a Replacement to Matlab

Python has matured to the point where it is a very powerful computational environment with flexibility that is unmatched by any commercial product. But this flexibility comes at the cost of a very fragmented install procedure. The default installation of python is feature poor and the needed features for computations are spread out over many [...]

1 January 2010 View Comments

How Long are Movies?

Background: Going to the movies requires the larger part of an evening and it is not uncommon to rent movies spanning two DVDs. Fueled by this observation I explore data published by the Internet Movie Database to test the hypothesis that movies are getting longer. Leading to the conclusion that movies have had a constant [...]

1 January 2010 View Comments

Easy Way to Formate Code in Wordpress using Windows Live Writer

I’m using CodeColorer for my WordPress, it is the plug in which allows you to insert code snippets into the post with nice syntax highlighting. It uses [ cc lang="matlab"] MatlabCode [ /cc ] syntax. I found a plug in available in Windows Live Writer, I am now be able to just highlight a line [...]

1 January 2010 View Comments

Basic Sound Processing with MATLAB

This page describes some basic sound processing functions in MATLAB. We’ll begin by reading in a wav file. You can download it here 440_sine.wav it contains a complex tone with a 440 Hz fundamental frequency (F0) plus noise.