Files
cmdla/10-04/plotQ.m

12 lines
212 B
Mathematica
Raw Normal View History

2023-10-29 02:06:02 +01:00
function plotQ( Q , q , range )
f = @(x,y) 0.5 * [ x y ] * Q * [ x ; y ] + q' * [ x ; y ];
warning( 'off' , 'all' );
fcontour( f , range , 'LineColor' , 'k' , 'LineWidth' , 1 );
warning( 'on' , 'all' );
end