drawrectangle
PURPOSE
function h = drawrectangle(x,y,sz1,sz2,linestyle)
SYNOPSIS
function h = drawrectangle(x,y,szx,szy,linestyle)
DESCRIPTION
CROSS-REFERENCE INFORMATION
This function calls:
This function is called by:
- example1 % Example 1: Run analyzePRF on an example dataset
SOURCE CODE
0001 function h = drawrectangle(x,y,szx,szy,linestyle)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018 if ~exist('linestyle','var') || isempty(linestyle)
0019 linestyle = 'r-';
0020 end
0021 if isempty(szy)
0022 szy = szx;
0023 end
0024
0025
0026 hold on;
0027
0028
0029 h = plot([x-szx/2 x+szx/2 x+szx/2 x-szx/2 x-szx/2], ...
0030 [y+szy/2 y+szy/2 y-szy/2 y-szy/2 y+szy/2],linestyle);
Generated on Wed 18-Jun-2014 21:47:41 by m2html © 2005