?? duprow.m
字號(hào):
function M = dupRow(v, m)% M = dupCol(v, m)%% Duplicates v, a row vector, m times. Returns the% result as matrix M with m rows, each one a copy of v.%% Inputs%% v a row vector (1-by-n)% m a positive integer%% Output%% M a matrix (m-by-n) matrix[r, c] = size(v);if r ~= 1 error('dupRow: input vector must be row')endM = v(ones(1, m), :);
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -