Added Project and Report
This commit is contained in:
11
Lessons/10-04/plotQ.m
Normal file
11
Lessons/10-04/plotQ.m
Normal file
@ -0,0 +1,11 @@
|
||||
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
|
||||
Reference in New Issue
Block a user