To say a simple thing

Monday, December 12, 2005

Toward freedom

Some days ago, I decided to get rid of Matlab because
  1. It is heavy. It takes at least 3 seconds to start itself and usually the programs are running slowly compared to the programs written in Python.
  2. It is propritary. Although many people in the control field use Matlab to do simulations, I don't agree with that. Why not use open source software instead? For operations with matrices and transfer functions, I highly recommand Scilab. As for numerical calucations, I think any programming language will perform better than the Mablab programming language.
I use the Python programming language to do numerical calculations, but it don't have a built-in library to plot figures. So at first I use Python to generate the data needed for plotting and then use Matlab to load those data to plot the figures. Few days ago, I try gnuplot. Although I've known gnuplot some years ago, I do not give it a try. To make gnuplot work with Python is not hard. The following is my solution (not elegant but works)
def gnuplot(d_name):
gnuplot_cmd = "splot '%s' using 1:2\n pause -1\n'" % d_name
fcmd = open("XXX.dem", "w")
fcmd.write(gnuplot_cmd)
fcmd.close()
system("XXX.dem")
Today, I decided to get rid of IE because it does not conform with the W3C standard. Now my main browser is Firefox.

世代傳承的意志 時代的變遷
人們的夢 只要人們繼續追求自由的答案
這一切的一切都將永不停止

這世界 沒錯 一個追求自由任憑選擇的世界
就在每個人的眼前無限地延伸
如果我們的夢想可以引導你的方向的話 就去追尋吧
在名為信念的旗幟之下

0 Comments:

Post a Comment

<< Home