vec.m
来自「GloptiPoly 3: moments, optimization and 」· M 代码 · 共 12 行
M
12 行
function x = vec(X)
% @MPOL/VEC - Vector of the columns of a matrix
%
% Given an M-by-N matrix Y, the instruction X = VEC(Y)
% returns a vector X with M*N entries such that Y = MAT(X), i.e. such that
% the columns of matrix Y are stacked within vector X.
% D. Henrion, December 31, 2003
[m n] = size(X);
x = reshape(X,m*n,1);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?