Re: [問題] HELP看不懂...怎麼辦...已回收
※ 引述《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
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
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):
MATLAB 近期熱門文章
PTT數位生活區 即時熱門文章