Navigation

Operators and Keywords

Function List:

C++ API

patch.m File Reference


Functions

 if (failed) print_usage()
endif unwind_protect_cleanup axes (oldh)
end_unwind_protect if (nargout > 0) retval
 !patch ([x1, x2],[y1, y2],'r')
 !patch ([[x1;NaN(8, 1)], x2],[[y1;NaN(8, 1)], y2],'r')
 !patch ('Faces', fac,'Vertices', vert,'FaceColor','r')
 !patch ('Faces', fac,'Vertices', vert,'FaceVertexCData',[0, 1, 0;0, 0, 1])
 !pause (1)
 !set (h, 'FaceColor', 'r')
 !patch ('Vertices', vertices, 'Faces', faces,...%! 'FaceVertexCData', jet(4), 'FaceColor', 'flat')%!view(-37.5

Variables

function retval
 oldh = gca ()
unwind_protect axes (h)
endif endfunction!demo!clf !t1 = (1/16:1/8:1)'*2*pi
 !t2 = ((1/16:1/8:1)' + 1/32)*2*pi
 !x1 = sin(t1) - 0.8
 !y1 = cos(t1)
 !x2 = sin(t2) + 0.8
 !y2 = cos(t2)
 !vert = [x1, y1
 x2
 y2
 !fac = [1:8,NaN(1,8)
 __pad10__
 __pad11__
 !h = patch([x1,x2],[y1,y2],cat (3,[0,0],[1,0],[0,1]))
!demo!clf !vertices = [0, 0, 0
 !faces = [1, 2, 5

Function Documentation

!patch ( 'Vertices'  ,
vertices  ,
'Faces'  ,
faces  ,
...%! 'FaceVertexCData ,
jet(4)  ,
'FaceColor'  ,
'flat  
)

!patch ( 'Faces'  ,
fac  ,
'Vertices'  ,
vert  ,
'FaceVertexCData  
)

!patch ( 'Faces'  ,
fac  ,
'Vertices'  ,
vert  ,
'FaceColor'  ,
'r'   
)

!patch ( x2]  ,
y2 ,
'r'   
)

!patch ( 'r'   ) 

!pause (  ) 

!set ( ,
'FaceColor'  ,
'r'   
)

endif unwind_protect_cleanup axes ( oldh   ) 

end_unwind_protect if ( nargout  ,
 
)

if ( failed   ) 


Variable Documentation

!fac = [1:8,NaN(1,8)

!faces = [1, 2, 5

!h = patch([x1,x2],[y1,y2],cat (3,[0,0],[1,0],[0,1]))

!demo ! clf !t1 = (1/16:1/8:1)'*2*pi

!t2 = ((1/16:1/8:1)' + 1/32)*2*pi

!vert = [x1, y1

!demo ! clf !vertices = [0, 0, 0

!x1 = sin(t1) - 0.8

!x2 = sin(t2) + 0.8

!y1 = cos(t1)

!y2 = cos(t2)

oldh = gca ()

function retval

Initial value:

 patch (varargin)

  [h, varargin] = __plt_get_axis_arg__ ("patch", varargin{:})

x2

y2