跳到主要內容

Octave -- an alternative to Matlab

Trying to use Octave to substute Matlab/Scilab. Its manual can be found here.

Here are some tips:

0. Add my m files to current path
  • use path to display the current searching path
  • copy my m file directory to /usr/share/octave/3.0.0/m/, where it will automatically load once octave is started.
1. Change text size:
  • text(10, 2, '{\fontsize {18} Whatever }')
  • legend('{\fontsize {24} legend item 1}')
2. Change text style
  • xlabel( '{ \bf label name for x}'), where \bf stands for bold fonts
  • \it stands for italic font
  • \sl stands for oblique font
  • \rm stands for normal font
3. Output option:
  • print ("print_this.png", "-dpng", "-landscape")
  • print ("print_this.ps", "-dpsc", "-landscape")

留言

這個網誌中的熱門文章

國道通行費比較表

A FREEway that is not really FREE. 有人想過 做個圖看看嗎 ? 資料來源: freeway.gov.tw 方案一【一段式收費】:無免費里程,單一費率0.82元/公里。 方案三【三段式收費】:每日每車免費里程20公里,標準費率1.2元/公里(行駛里程 小於200公里), 長途費率0.9元/公里(行駛里程大於等於200公里) 相關新聞: 國道計程 「北高估348元」 | 蘋果日報 : 自由電子報 - 國道計程收費民調 免費20公里呼聲高 : 國道計程收費 下半年上路 - Yahoo!奇摩新聞 :