Carpenters keep moving forward

2009年8月22日星期六

Round up numbers in Matlab, leaving given numbers of digits after dot

The easiest way is to try to
num = num*10;
num = round(num);
num = num / 10;
kind of thing...

Other way is:
the vpa function.
Posted by Lei Yuan at 23:36 没有评论:
Labels: Matlab

2009年8月20日星期四

Install the GUI in R for Ubuntu

First,

sudo apt-get install r-base

Then, type sudo R in command line to invoke R. Type in

install.packages('Rcmdr')

then

q()

Then use R to invoke it,

library(Rcmdr).
Posted by Lei Yuan at 14:23 没有评论:
Labels: Linux, R, Ubuntu
较新的博文 较旧的博文 主页
订阅: 博文 (Atom)

博客归档

  • ►  2014 (2)
    • ►  三月 (1)
    • ►  一月 (1)
  • ►  2013 (1)
    • ►  三月 (1)
  • ►  2012 (11)
    • ►  十一月 (1)
    • ►  十月 (2)
    • ►  九月 (1)
    • ►  七月 (1)
    • ►  六月 (1)
    • ►  五月 (3)
    • ►  三月 (1)
    • ►  二月 (1)
  • ►  2011 (1)
    • ►  十月 (1)
  • ►  2010 (2)
    • ►  二月 (1)
    • ►  一月 (1)
  • ▼  2009 (18)
    • ►  十一月 (2)
    • ►  十月 (1)
    • ►  九月 (2)
    • ▼  八月 (2)
      • Round up numbers in Matlab, leaving given numbers ...
      • Install the GUI in R for Ubuntu
    • ►  七月 (3)
    • ►  五月 (2)
    • ►  四月 (2)
    • ►  三月 (1)
    • ►  二月 (3)
  • ►  2008 (34)
    • ►  十二月 (1)
    • ►  十一月 (4)
    • ►  十月 (4)
    • ►  九月 (5)
    • ►  八月 (2)
    • ►  六月 (18)

Number of Views

“图片窗口”主题背景. 由 Blogger 提供支持.