⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nextcolor.m

📁 有关matlab的电子书籍有一定的帮助希望有用
💻 M
字号:
function [lineinfo,colorCount] = nextcolor(co,lso,colorCount)
%Returns next available color and linestyle and increments colorCount
% Inputs:
%      co - cell array of colors
%      lso - cell array of line styles
%      colorCount - number of colors allocated thus far
% Outputs:
%      lineinfo - structure with .color and .linestyle fields
%
% Used by sigbrowse, filtview and spectview

%       Copyright (c) 1988-98 by The MathWorks, Inc.
% $Revision: 1.3 $

lc = length(co);
ls = length(lso);
   
colorCount = colorCount + 1;

lineinfo.color = co{rem(colorCount-1,lc)+1};
lineinfo.linestyle = lso{rem(ceil(colorCount/lc)-1,ls)+1};
    

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -