mass.m

来自「GloptiPoly 3: moments, optimization and 」· M 代码 · 共 27 行

M
27
字号
function y = mass(x)% @MPOL/MASS - Measure mass%% MASS(X) returns the mass (type MOM) of the unique measure associated% with the polynomial X%% Equivalent to MASS(MEAS(X))% D. Henrion, 15 March 2006  global MMMmeasx = indmeas(x);if length(measx) > 1 error('More than one measure associated with input argument')elseif measx == 0 error('Undefined measure')else ind = find(MMM.indmeas == measx); if isempty(ind)  error('Undefined measure') end % Create moment of zeroth power of this measure y = mom(1,measx);end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?