Sunday, February 05, 2006

Computer: Picasa Test

Photo by Puvas Nandakwang Posted by Picasa

This is for testing Picasa 2's blogging capability only.

Friday, February 03, 2006

Study: Curve Fitting in Matlab

Matlab has a curve fitting toolbox that can make most of curve fitting tasks handy. If we know a formal form of a target function and perhaps can arrange it properly, curve fitting process should converge fast enough.

However, one of the major problems even when we know the formal form is that we can't arrange our term properly. In such a situation, many people try to use the generalized curve fitting capability in Matlab instead. However, it converges slower than it should be. For example, if we are going to fit hyperbolic function: y = a/(x-b), if we do not notice that this is actually a simplified version of rational form (, we may resort to use general equation ( . Although it is easier, it tends to converges slowly.

In case that we do not have the curve fitting toolbox, we may use an optimization toolbox instead. In fact, general equations defined in the curve fitting toolbox relies on the optimization toolbox. However, using the optimization toolbox requires more complicated management of data array.

Document on the optimization toolbox can be found at

And the most relevant page in the document is at

In summary, if we have a curve fitting toolbox, our curve fitting tasks will be very easy. But only optimization toolbox is sufficient. Please note that the curve fitting toolbox do not work independently; you need to have statistics and optimization toolboxes as well.


Thursday, February 02, 2006

English: What I learned from the first draft

  1. Don't mention a thing that we will not talk about it later. Although it may look good for an introduction, it actually not good for reader at all. Try to find a new way for introduction is a better choice.
  2. When we say "the problem" for the first time, it is better to include a good adjective representing "the problem'. For example, "to alleviate the computational complexity problem". Plus, it is generally better if we show an example of a problem in the first time we mention that problem (show the computation complexity).
  3. There may be parts that are off-topic due to the scope of our article. Try to get rid of them as much as possible. Always remind ourselves that we have a specific goal, not a general goal, in every writing.