?? display.m
字號:
function display(con)% Command window display of a linear constraint object%% Syntax:% "con"%% "display(con)"%% Description:% "display(con)" is called whenever a linear constraint object needs to be% displayed in the Matlab command window.%% Examples:% The command sequence %%%% "CE = [0 0 1]; dE = 0;"%% "CI = [1 0 0;-1 0 0;0 1 0;0 -1 0]; dI = [4;-2;3;-1];"%% "con = linearcon(CE,dE,CI,dI)"%%%% results in%%%% "con =%% "[ 0.000000 0.000000 1.000000 ]x = 0.000000"%% "[ 1.000000 0.000000 0.000000 ]x <= 4.000000"%% "[ -1.000000 0.000000 0.000000 ]x <= -2.000000"%% "[ 0.000000 1.000000 0.000000 ]x <= 3.000000"%% "[ 0.000000 -1.000000 0.000000 ]x <= -1.000000"%%%% See Also:% linearconfprintf(1,['\n' inputname(1) ' ='])CE = con.CE; dE = con.dE;CI = con.CI; dI = con.dI;if isempty(CE) & isempty(CI) fprintf(1,' empty\n\n')else fprintf(1,'\n')endfor k = 1:length(dE) fprintf(1,' [ ') fprintf(1,'%f ',CE(k,:)) fprintf(1,']x = %f\n',dE(k))endfor k = 1:length(dI) fprintf(1,' [ ') fprintf(1,'%f ',CI(k,:)) fprintf(1,']x <= %f\n',dI(k))endreturn
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -