1.figure() --- 建立乙個用來顯示圖形輸出的乙個視窗物件
2.conv() --- 卷積操作
3.subplot() --- 將figure中的劃分為幾塊
income = [3.2 4.1 5.0 5.6];
outgo = [2.5 4.0 3.35 4.9];
subplot(2,1,1); plot(income)
subplot(2,1,2); plot(outgo)
先用subplot劃分figure為2*1的區域,上面乙個顯示income,下面乙個顯示outgo。
subplot的格式為(行數,列數,第幾個區域的位置),不加逗號也是可以的。
4.ones() --- 建立元素為0的矩陣 zeros() --- 建立元素為1的矩陣
5.load(filename
) 從filename
載入資料。
常用內建函式
print bytes 你好 encoding utf 8 print bytes 你好 encoding utf 8 decode 解碼 print bytes 你好 encoding gbk 輸出 b xe4 xbd xa0 xe5 xa5 xbd 你好b xc4 xe3 xba xc3 pri...
MATLAB常用函式
y polyval p,x 返回n次多項式在x處的值。輸入變數p是乙個長度為n 1的向量,其元素為按降冪排列的多項式係數y p1 x n p2 x n 1 pn x p n 1 x可以是乙個矩陣或者乙個向量,在這兩種情況下,polyval計算在x中任意元素處的多項式p的估值 對多項式p x 3 x ...
Matlab常用函式
下例為讀取train資料夾中的所有 folder train filepaths dir fullfile folder,bmp 列出該資料夾下所有.bmp格式的檔案 其中包括檔案的名字 日期 畫素等 for i 1 length filepaths image imread fullfile fo...