plotdbsel(dbmat, xcol, ycol, lcol, ltpn)
% plotdbsel(dbmat, xcol, ycol, lcol, ltpn):
% dbmat - Database matrix with each row representing a sample
% xcol - Numbers of the columns representing the X-axis
% More than one column is allowed for X-axis
% ycol - Numbers of the columns representing the Y-axis
% More than one column is allowed for Y-axis
% lcol - Numbers of the columns clustering data into curves
% More than one column forms permutation for clustering
% ltpn - Display pattern applied to curve legend
% If ltpn is not selected, the legend will not display
% If ltpn is [], a simple pattern will be auto-generated
%
% [hdl,ltxt,ldat]=plotdbsel(...):
% hdl - handler for the ploted figure
% ltxt - curve cluster info used in the legend in text form
% ldat - curve cluster info in numerical form
%
% Example:
% plotdbsel(datt(datt(:,3)>0,:),1,4,2,[])
% plotdbsel(datt,1,4:6,[2 3],[])
Cite As
Weihu Wang (2026). plotdbsel(dbmat, xcol, ycol, lcol, ltpn) (https://in.mathworks.com/matlabcentral/fileexchange/45586-plotdbsel-dbmat-xcol-ycol-lcol-ltpn), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > 2-D and 3-D Plots > Line Plots >
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
