CLplot(CL,[w])
CL : | Corrleation list (or FL) | |
w : | Widht of lines |
cla; CLplot([1 1;2 1;3 1; 4 2; 5 3 ; 5 4; 5 5; 6 6],2); plotannotationdelete; papermode
This function, CLplot
, is designed to plot a correlation for debugging purposes. It is part of the SolidGeometry library and was introduced in version 5.1. The function primarily serves to visualize correlation lists, which are used in geometric computations.
varargin
. It is used to modify the plotting behavior, although the specific effect is not detailed in the provided code.The function begins by attempting to retrieve the optional parameter w
using a helper function getfuncparams
. However, this line is commented out, indicating that the function currently does not explicitly use w
within its body.
The core operation of the function is to call another function, plotcorrelation
, passing the correlation list CL
and any additional arguments provided in varargin
. This suggests that plotcorrelation
is responsible for the actual plotting logic, and CLplot
serves as a wrapper to facilitate this process.
An example is provided in the comments, demonstrating how to use CLplot
:
cla; CLplot([1 1;2 1;3 1; 4 2; 5 3 ; 5 4; 5 5; 6 6],2); plotannotationdelete; papermode
In this example, a correlation list is defined as a series of 2D points, and CLplot
is called with this list and an additional parameter 2
. The functions plotannotationdelete
and papermode
are likely used to manage the plot's appearance and mode, although their specific roles are not detailed in the provided code.
The function header mentions several related functions, such as FLofPLcorrelation
, PLcorrelationcheck
, plotcorrelation
, and PLplotcorrelation
. These functions likely offer additional capabilities for handling and visualizing correlation lists within the SolidGeometry library.