Jiayi's profile五棵松树洞PhotosBlogListsMore Tools Help

Blog


    冬天已经来了,腌笃鲜还会远么

    亚洲超市应季新进了一批火腿,买之
    沃尔玛的鲜猪蹄,便宜,买之
    去年师兄回国捎带来一袋笋干,虽然不比冬笋鲜嫩多汁,却能更添鲜美
    找不到百叶结,其他豆制品替代品还是易得的
    一锅腌笃鲜这就齐活了

    作为上海人,与腌笃鲜有关的记忆比汤本身还要层次丰富
    冬天,怎么可以没有腌笃鲜呢?

    夜打春雷第一声
    满山新笋玉棱棱
    买来配煮花猪肉
    不问厨娘问老僧

    Not a big fans of MATLAB

    Matrix Inversion with Excel

    Copy from http://faculty.kfupm.edu.sa/SE/salamah/matrix/index.htm

    While doing my homework 5 of Applied Colorimetry, I find it's pretty handy to do simple matrix calculation (inversion and multiplication) in Excel rather than coding in MATLAB. Following is the step-by-step procedure available on http://faculty.kfupm.edu. Enjoy!

    Suppose you want to find the inverse of the matrix

    And you want to use Excel to assist you in finding the inverse.  Well, Excel can do that for you.  However, you have to do certain things in order for Excel to do its job.  The first thing you need to do is to enter the matrix in the worksheet; entering the matrix in the worksheet is a matter of typing the numbers (elements) of the matrix, each element in a separate cell.  So, open up Excel and start entering the numbers as shown in the figure below:

    matrix in Excel

    Once you entered the elements of the matrix, you can invoke the MINVERSE function which computes the inverse of the matrix.  Before you invoke the function, you have to highlight an area of cells with equal number of rows and columns as the matrix you like to invert.  In the figure below, I highlighted an area of 3 rows and 3 columns:

    Type the equal sign "=" before you click anywhere, like this:

    Once you are done, click on "Insert Function" button on the left side of the Formula Bar:

    insert function

    Clicking on "Insert Function" button opens up the "Insert Function" dialog box:

    insert function

    From the "Or select a category:" menu right below and to the left of the "Go" button, choose "Math & Trig":

    insert function

    And from the "Select a function:" list, choose "MINVERSE":

    minverse

    Once you clink on "OK" button, the "Function Arguments" dialog box comes up:

    minverse bos

    Now go ahead and select the cells that contain the matrix you like to find the inverse of:

    minverse box

    That last thing you have to do before you get the inverse of the matrix is to press and hold the ‘Ctrl’ and ‘Shift’ keys and then press the ‘Enter’ key.  Excel will now fill the area you selected to hold the inverse of the matrix with the inverse:

    matrix inverse in Excel

    And that’s the end of it.

    There are some shortcuts to all of this.  Assume that you want to find the inverse of another matrix, all what you have to do now is to select the proper size of cells, type "=", and from left upper corner below the standard toolbar, click on the name of the function you just used, in this case, it is "MINVERSE":

    shortcut to minverse

    Matrix Multiplication with Excel

    You want to multiply two matrices such as the matrix and a one-column matrix:

    You know the result of the multiplication is a 3 ´ 1 matrix because the first matrix is 3 ´3 and the second matrix is 3´ 1. Excel can do the multiplication for you also. The first thing you have to do is to enter the elements the two matrices into the worksheet:

    multiply matrices in Excel

    Now, go ahead and highlight an area of cells equal to the size of the matrix which is the result of the multiplication; in your case, you need to highlight 3 rows and one column:

    Type the equal sign "=" before you click anywhere:

    Now, go and click on "Insert Function" and choose from the "or select a category" menu "Math & Triq" category.   From the "Select a function" list, search for and choose "MMULT":

    mmult

    Click on "OK" button.  After that, the "Function Arguments" dialog box comes up:

    mmult

    In the "Array 1" field, enter the range of the first matrix by highlighting the cells that hold the matrix.  Then, click on the "Array 2" field and enter the range of the second matrix in the same way you did for the first field:

    mmult

    Press and hold the ‘Ctrl’ and ‘Shift’ keys and then press the ‘Enter’ key.  Excel will then give you the result of multiplying the two matrices:

    You can use the shortcut as explained earlier to call the "MMULT" function.

    Hiking



    跋涉了8英里山路后露出欣慰笑容的登山者


    不需要什么名山大川,只要有一片绿色的山头,就会有一条曲径通幽的Hiking小道。
    也没有大动土木修建的山路,红绿错落的树叶和盘根错节的树根编织了一条依稀可辨的山路
    登山始于最单纯的动机,却需要仰仗执着的信念和充沛的体能,最要不得的是患得患失的功利心
    为了那极目远眺一览众山的瞬间,要满脚泥泞地低头走路。
    在林间没有大视野的风景,一缕经枝杈过滤的光线,一片颜色奇异的叶子或许就是路途中全部收获
    山顶的风景也不一定美得令人陶醉,但在长途跋涉之后的风景,怎么看都是珍贵。
    凡是得之不易的必然可贵可爱,这就是登山背后的哲学。