⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vec.m

📁 GloptiPoly 3: moments, optimization and semidefinite programming. Gloptipoly 3 is intended to so
💻 M
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -