[51] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
---|
| 2 | "http://www.w3.org/TR/REC-html40/loose.dtd"> |
---|
| 3 | <html> |
---|
| 4 | <head> |
---|
| 5 | <title>Description of set_col_vec</title> |
---|
| 6 | <meta name="keywords" content="set_col_vec"> |
---|
| 7 | <meta name="description" content="'set_col_vec': sets the color code for vectors depending on a scalar vec_C and parameters given by the struct colcode"> |
---|
| 8 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
---|
| 9 | <meta name="generator" content="m2html © 2003 Guillaume Flandin"> |
---|
| 10 | <meta name="robots" content="index, follow"> |
---|
| 11 | <link type="text/css" rel="stylesheet" href="../m2html.css"> |
---|
| 12 | </head> |
---|
| 13 | <body> |
---|
| 14 | <a name="_top"></a> |
---|
| 15 | <div><a href="../index.html">Home</a> > <a href="index.html">.</a> > set_col_vec.m</div> |
---|
| 16 | |
---|
| 17 | <!--<table width="100%"><tr><td align="left"><a href="../index.html"><img alt="<" border="0" src="../left.png"> Master index</a></td> |
---|
| 18 | <td align="right"><a href="index.html">Index for . <img alt=">" border="0" src="../right.png"></a></td></tr></table>--> |
---|
| 19 | |
---|
| 20 | <h1>set_col_vec |
---|
| 21 | </h1> |
---|
| 22 | |
---|
| 23 | <h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2> |
---|
| 24 | <div class="box"><strong>'set_col_vec': sets the color code for vectors depending on a scalar vec_C and parameters given by the struct colcode</strong></div> |
---|
| 25 | |
---|
| 26 | <h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2> |
---|
| 27 | <div class="box"><strong>function [colorlist,col_vec,colcode_out]=set_col_vec(colcode,vec_C) </strong></div> |
---|
| 28 | |
---|
| 29 | <h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2> |
---|
| 30 | <div class="fragment"><pre class="comment">'set_col_vec': sets the color code for vectors depending on a scalar vec_C and parameters given by the struct colcode |
---|
| 31 | function [colorlist,col_vec,minC,colcode1,colcode2,maxC]=colvec(colcode,vec_C) |
---|
| 32 | OUTPUT |
---|
| 33 | colorlist(nb,3); %list of nb colors |
---|
| 34 | col_vec, size=[length(vec_C),3)];%list of color indices corresponding to vec_C |
---|
| 35 | minC, maxC: min and max of vec_C |
---|
| 36 | colcode1, colcode2: absolute threshold in vec_C corresponding to colcode.colcode1 and colcode.colcode2 |
---|
| 37 | INPUT |
---|
| 38 | colcode: struture setting the colorcode for vectors |
---|
| 39 | colcode.CName: 'ima_cor','black','white',... |
---|
| 40 | colcode.ColorCode ='black', 'white', 'rgb','brg', '64 colors' |
---|
| 41 | colcode.FixedCbounds =0; thresholds scaling relative to min and max, =1 fixed thresholds |
---|
| 42 | colcode.MinC; min |
---|
| 43 | colcode.MaxC; max |
---|
| 44 | colcode.colcode1: first threshold for rgb, relative to min (0) and max (1) |
---|
| 45 | colcode.colcode2: second threshold for rgb, relative to min (0) and max (1), |
---|
| 46 | rmq: we need min <= colcode1 <= colcode2 <= max, otherwise |
---|
| 47 | colcode1 and colcode2 are adjusted to the bounds |
---|
| 48 | vec_C: matlab vector representing the scalar setting the color</pre></div> |
---|
| 49 | |
---|
| 50 | <!-- crossreference --> |
---|
| 51 | <h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2> |
---|
| 52 | This function calls: |
---|
| 53 | <ul style="list-style-image:url(../matlabicon.gif)"> |
---|
| 54 | </ul> |
---|
| 55 | This function is called by: |
---|
| 56 | <ul style="list-style-image:url(../matlabicon.gif)"> |
---|
| 57 | <li><a href="plot_field.html" class="code" title="function [PlotType,PlotParamOut,haxes]= plot_field(Data,haxes,PlotParam,KeepLim,PosColorbar)">plot_field</a> 'plot_field': plot any field with the structure defined in the uvmat package</li><li><a href="uvmat.html" class="code" title="function varargout = uvmat(varargin)">uvmat</a> 'uvmat': function associated with the GUI 'uvmat.fig' for images and data field visualization</li></ul> |
---|
| 58 | <!-- crossreference --> |
---|
| 59 | |
---|
| 60 | |
---|
| 61 | |
---|
| 62 | <hr><address>Generated on Wed 10-Mar-2010 20:42:36 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/">m2html</a></strong> © 2003</address> |
---|
| 63 | </body> |
---|
| 64 | </html> |
---|