Changeset 517 for trunk/src/set_col_vec.m
- Timestamp:
- Aug 17, 2012, 11:47:16 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/set_col_vec.m
r405 r517 21 21 % vec_C: matlab vector representing the scalar setting the color 22 22 function [colorlist,col_vec,colcode_out]=set_col_vec(colcode,vec_C) 23 col_vec=[]; 23 col_vec=ones(size(vec_C));%all vectors at color#1 by default 24 24 25 if ~isstruct(colcode),colcode=[];end; 25 26 colcode_out=colcode;%default 26 27 if isempty(vec_C) || ~isnumeric(vec_C) 27 28 colorlist=[0 0 1]; %blue 28 col_vec=ones(size(vec_C));29 29 return 30 30 end 31 31 32 33 34 % colcode_out.ColCode1=ColCode1;35 % colcode_out.ColCode2=ColCode2;36 32 %% uniform color plot 37 33 check_multicolors=0; 38 col_vec=ones(size(vec_C));%all vectors at color#1 by default39 34 %default input parameters 40 35 if ~isfield(colcode,'ColorCode') || isempty(colcode.ColorCode)
Note: See TracChangeset
for help on using the changeset viewer.