我沒有數據,但想在JMP中繪製這個repsonse函數y = 72.0 + 3.6x1 - 2.5x2來查看輪廓。我該怎麼做呢?謝謝。
Jim說明了JMP如何繪製函數。它適用於Graph Builder和各種分析器。很多用戶都沒有意識到這種能力存在。或者他們可能已經忘記了它。
但是,Jim,確實有很多行和很多代碼來繪製函數。我們不需要數據。我們只需要x和y值來定義繪圖範圍。這應該做:
Names Default To Here( 1 );
dt = New Table( "Function Plot",
New Column( "y",
Formula( 72.0 + 3.6 * :x1 - 2.5 * :x2 )
),
New Column( "x1", Values( [-1, -1, 1, 1] ) ),
New Column( "x2", Values( [-1, 1, -1, 1] ) )
);
Surface Plot( Columns( :y, :x1, :x2 ), Formula( "y" ), );
這是你想要的?

Names Default To Here( 1 );
dt = New Table( "function", New Column( "y" ), New Column( "x1" ), New Column( "x2" ) );
For( i = 1, i <= 100, i++,
dt << add rows( 1 );
:x1[N Rows( dt )] = i;
:x2[N Rows( dt )] = i ^ 2;
);
dt:y << set formula( 72.0 + 3.6 * :x1 - 2.5 * :x1 ^ 2 );
Surface Plot(
Columns( :y, :x1, :x2 ),
Surface Color Theme( "Green to Black to Red" ),
Surface Color Theme2( "Green to White to Red" ),
Surface Color Theme3( "White to Black" ),
Surface Color Theme4( "Blue to Gray to Red" ),
Response Column Color Theme( "Blue to Green to Red" ),
Response Column Color Theme2( "Spectral" ),
Response Column Color Theme3( "Jet" ),
Response Column Color Theme4( "White to Blue" ),
Formula( "y" ),
Surface Color Method( "Solid", "Solid", "Solid", "Solid" ),
SetVariableAxis( :x1, Axis Data( {} ) ),
SetVariableAxis( :x2, Axis Data( {} ) ),
SetZAxis( y, Current Value( 100 ), Axis Data( {} ) ),
SetXVariable( :x1 ),
SetYVariable( :x2 ),
Iso Value( 0, 127.5 ),
Frame3D( Set Rotation( -58.1704596660756, 1.29965884086262, 60.3238676208627 ) )
);