Re: [問題] HELP看不懂...怎麼辦...已回收

看板MATLAB作者 (小太保)時間16年前 (2009/05/26 14:56), 編輯推噓2(201)
留言3則, 2人參與, 最新討論串2/2 (看更多)
※ 引述《kto135 (KTO)》之銘言: : 英文太差 : 實在是看不懂 : 有什麼訣竅呢?? 我的自學方式是,先從你會的函數開始看起,例如 size 這種常用的、 呼叫語法簡單的... SIZE Size of array. D = SIZE(X), for M-by-N matrix X, returns the two-element row vector D = [M,N] containing the number of rows and columns in the matrix. For N-D arrays, SIZE(X) returns a 1-by-N vector of dimension lengths. Trailing singleton dimensions are ignored. [M,N] = SIZE(X) for matrix X, returns the number of rows and columns in X as separate output variables. 它底下還有趴啦趴啦一堆。前兩段就是常用的語法,假設 X=[1 2 3;4 5 6] 是 2x3 的矩陣,而你知道 [M,N] = size(X) 的結果就是取出 2 跟 3,把 M 存 2, 把 N 存 3,再去看它的釋意... 回傳 數目 列 跟 行 [M,N] = SIZE(X) for matrix X, returns the number of rows and columns in X as separate output variables. ^^^^^^^^^^^^^^^^^^^^^^^^^^ 回傳的東西分隔開來顯示 => 2, 3 關鍵字就是 return、separate、output、variables 這些你常打 help 一定會 看到的英文字。 把這些常用的釋意字看熟,再去看結構比較複雜的函數如 fmincon,你就會只剩 下幾個字看不懂而已。 而像 size 這種簡單函數的 help,一開始你只需要看「你看的懂的部份」,像 底下還有... When SIZE is applied to a Java array, the number of rows returned is the length of the Java array and the number of columns is always 1. When SIZE is applied to a Java array of arrays, the result describes only the top level array in the array of arrays. 如果上面趴啦趴啦一堆就是看的很痛苦,那就直接跳過,再往下直接看使用例子 就好了,例子看的懂比較重要。 另外像 fmincon 這種函數網路上有時也找的到別人寫的範例 m 檔,可以抓下來 看看,有的會很費心地解釋它某一個呼叫命令是要做什麼的。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.131.224.110

05/26 16:45, , 1F
原po佛心來的
05/26 16:45, 1F

05/27 02:26, , 2F
推 看最前面部份及學習範例 其實真的可以搞懂很多
05/27 02:26, 2F

05/27 02:26, , 3F
*分
05/27 02:26, 3F
文章代碼(AID): #1A6vAb37 (MATLAB)
討論串 (同標題文章)
文章代碼(AID): #1A6vAb37 (MATLAB)