Huan's profileThrough the mists of obl...PhotosBlogListsMore Tools Help

Blog


    July 28

    A simple matlab question

    I posted this question in another place. 

    in case you dont see it ...


    Given a matrix A, say

    A = rand(5);

    together with two index arrays of the same length, e.g.

    I = [1,2];

    J = [3,4];

      here is the question: How to shorten the following script into one line? i.e. how to vectorize the performance …

    %start

    vec =[];

    for i=1:length(I)

    vec = [vec, A(I(i),J(i))];

    end

    %end

    Any suggestion is greatly appreciated!

    IMA

    有人问我IMA 那里有没有热水…… 答案是有的,还有点心和咖啡。
    点心是 10:45 am 供应, 下午 3点收摊。 咖啡是 24/7 都提供。
    poster session 是最爽的,还有酒有肉。

    随便贴几张 IMA的照片











    July 19

    又打断了一根弦……


    我丫是吃拍子的 ……
    July 17

    流水帐

     
    今天把正手握拍从东方式改成了半西方式,击球力量明显大了很多。 上旋球可以照旧打,平击球容易了很多。
     
    然后又打坏了一块球拍。 一个月打坏 3 块拍 共 4 次, 穿弦的钱就够买一块不错的球拍了。
     
    还有就是上周严重扭伤脚踝, 拍了 3 张 X 光, 骗到护踝一个,也不是特别好用。 谁有红花油?
    July 07

    Dinosaurs and Man Roamed The Earth Together ... and with Palin

    To find the whole article, click here.
    Here's a brief summary:


    ChristiaNet.com, the world's largest Christian portal with ten million monthly page loads, recently asked, "Did dinosaurs roam the earth at the same time as man?"

    Out of 1,400 Christians surveyed, half or 50% believed that dinosaurs and man coexisted.

    Twenty-seven percent (27%) of those surveyed disagreed with the first group and did not believe that man and dinosaurs roamed the earth together.

    Twenty-three percent (23%) of Christians surveyed were unsure about whether or not dinosaurs roamed at the same time as man.

    I am just quoting a fact. No comments.

    BTW, former Alaska governor Sarah Palin is in the first category (link). Yes, FORMER!


    (courtesy to Daily collegian)


    "You know, politically speaking, if I die, I die. So be it." -- Sarah Palin.

    Can I get an Amen?  See ya sucka ~~~~ or...welcome back to ruin the GOP once again in 2012!