toolbox/misc/cmap_ns_white.m
function CMap = cmap_ns_white(nbVals)

% @=============================================================================
% This function is part of the Brainstorm software:
% https://neuroimage.usc.edu/brainstorm
% 
% Copyright (c) University of Southern California & McGill University
% This software is distributed under the terms of the GNU General Public License
% as published by the Free Software Foundation. Further details on the GPLv3
% license can be found at http://www.gnu.org/copyleft/gpl.html.
% 
% FOR RESEARCH PURPOSES ONLY. THE SOFTWARE IS PROVIDED "AS IS," AND THE
% UNIVERSITY OF SOUTHERN CALIFORNIA AND ITS COLLABORATORS DO NOT MAKE ANY
% WARRANTY, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTIES OF
% MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, NOR DO THEY ASSUME ANY
% LIABILITY OR RESPONSIBILITY FOR THE USE OF THIS SOFTWARE.
%
% For more information type "brainstorm license" at command prompt.
% =============================================================================@
%
% Authors: Sylvain Baillet, 2012

CMap =[
         0    1.0000    1.0000
    0.0004    0.9889    0.9996
    0.0007    0.9777    0.9993
    0.0011    0.9666    0.9989
    0.0014    0.9555    0.9986
    0.0018    0.9443    0.9982
    0.0022    0.9332    0.9978
    0.0025    0.9221    0.9975
    0.0029    0.9109    0.9971
    0.0032    0.8998    0.9968
    0.0036    0.8887    0.9964
    0.0040    0.8775    0.9960
    0.0043    0.8664    0.9957
    0.0047    0.8553    0.9953
    0.0050    0.8441    0.9950
    0.0054    0.8330    0.9946
    0.0058    0.8219    0.9942
    0.0061    0.8107    0.9939
    0.0065    0.7996    0.9935
    0.0069    0.7885    0.9931
    0.0072    0.7773    0.9928
    0.0076    0.7662    0.9924
    0.0079    0.7551    0.9921
    0.0083    0.7439    0.9917
    0.0087    0.7328    0.9913
    0.0090    0.7217    0.9910
    0.0094    0.7105    0.9906
    0.0097    0.6994    0.9903
    0.0101    0.6883    0.9899
    0.0105    0.6771    0.9895
    0.0108    0.6660    0.9892
    0.0112    0.6549    0.9888
    0.0115    0.6437    0.9885
    0.0119    0.6326    0.9881
    0.0123    0.6215    0.9877
    0.0126    0.6103    0.9874
    0.0130    0.5992    0.9870
    0.0133    0.5881    0.9867
    0.0137    0.5769    0.9863
    0.0141    0.5658    0.9859
    0.0144    0.5547    0.9856
    0.0148    0.5435    0.9852
    0.0151    0.5324    0.9849
    0.0155    0.5213    0.9845
    0.0159    0.5101    0.9841
    0.0162    0.4990    0.9838
    0.0166    0.4879    0.9834
    0.0169    0.4767    0.9831
    0.0173    0.4656    0.9827
    0.0177    0.4545    0.9823
    0.0180    0.4433    0.9820
    0.0184    0.4322    0.9816
    0.0188    0.4211    0.9812
    0.0191    0.4099    0.9809
    0.0195    0.3988    0.9805
    0.0198    0.3876    0.9802
    0.0202    0.3765    0.9798
    0.0206    0.3654    0.9794
    0.0209    0.3542    0.9791
    0.0213    0.3431    0.9787
    0.0216    0.3320    0.9784
    0.0220    0.3208    0.9780
    0.0224    0.3097    0.9776
    0.0227    0.2986    0.9773
    0.0231    0.2874    0.9769
    0.0234    0.2763    0.9766
    0.0238    0.2652    0.9762
    0.0242    0.2540    0.9758
    0.0245    0.2429    0.9755
    0.0249    0.2318    0.9751
    0.0252    0.2206    0.9748
    0.0256    0.2095    0.9744
    0.0260    0.1984    0.9740
    0.0263    0.1872    0.9737
    0.0267    0.1761    0.9733
    0.0270    0.1650    0.9730
    0.0274    0.1538    0.9726
    0.0278    0.1427    0.9722
    0.0281    0.1316    0.9719
    0.0285    0.1204    0.9715
    0.0288    0.1093    0.9712
    0.0292    0.0982    0.9708
    0.0296    0.0870    0.9704
    0.0299    0.0759    0.9701
    0.0303    0.0648    0.9697
    0.0307    0.0536    0.9693
    0.0310    0.0425    0.9690
    0.0314    0.0314    0.9686
    0.0556    0.0556    0.9694
    0.0798    0.0798    0.9702
    0.1040    0.1040    0.9710
    0.1282    0.1282    0.9718
    0.1525    0.1525    0.9725
    0.1767    0.1767    0.9733
    0.2009    0.2009    0.9741
    0.2251    0.2251    0.9749
    0.2493    0.2493    0.9757
    0.2735    0.2735    0.9765
    0.2977    0.2977    0.9773
    0.3220    0.3220    0.9780
    0.3462    0.3462    0.9788
    0.3704    0.3704    0.9796
    0.3946    0.3946    0.9804
    0.4188    0.4188    0.9812
    0.4430    0.4430    0.9820
    0.4673    0.4673    0.9827
    0.4915    0.4915    0.9835
    0.5157    0.5157    0.9843
    0.5399    0.5399    0.9851
    0.5641    0.5641    0.9859
    0.5883    0.5883    0.9867
    0.6125    0.6125    0.9875
    0.6368    0.6368    0.9882
    0.6610    0.6610    0.9890
    0.6852    0.6852    0.9898
    0.7094    0.7094    0.9906
    0.7336    0.7336    0.9914
    0.7578    0.7578    0.9922
    0.7821    0.7821    0.9929
    0.8063    0.8063    0.9937
    0.8305    0.8305    0.9945
    0.8547    0.8547    0.9953
    0.8789    0.8789    0.9961
    0.9031    0.9031    0.9969
    0.9274    0.9274    0.9976
    0.9516    0.9516    0.9984
    0.9758    0.9758    0.9992
    1.0000    1.0000    1.0000
    1.0000    0.9750    0.9750
    1.0000    0.9500    0.9500
    1.0000    0.9250    0.9250
    1.0000    0.9000    0.9000
    1.0000    0.8750    0.8750
    1.0000    0.8500    0.8500
    1.0000    0.8250    0.8250
    1.0000    0.8000    0.8000
    1.0000    0.7750    0.7750
    1.0000    0.7500    0.7500
    1.0000    0.7250    0.7250
    1.0000    0.7000    0.7000
    1.0000    0.6750    0.6750
    1.0000    0.6500    0.6500
    1.0000    0.6250    0.6250
    1.0000    0.6000    0.6000
    1.0000    0.5750    0.5750
    1.0000    0.5500    0.5500
    1.0000    0.5250    0.5250
    1.0000    0.5000    0.5000
    1.0000    0.4750    0.4750
    1.0000    0.4500    0.4500
    1.0000    0.4250    0.4250
    1.0000    0.4000    0.4000
    1.0000    0.3750    0.3750
    1.0000    0.3500    0.3500
    1.0000    0.3250    0.3250
    1.0000    0.3000    0.3000
    1.0000    0.2750    0.2750
    1.0000    0.2500    0.2500
    1.0000    0.2250    0.2250
    1.0000    0.2000    0.2000
    1.0000    0.1750    0.1750
    1.0000    0.1500    0.1500
    1.0000    0.1250    0.1250
    1.0000    0.1000    0.1000
    1.0000    0.0750    0.0750
    1.0000    0.0500    0.0500
    1.0000    0.0250    0.0250
    1.0000         0         0
    1.0000    0.0114         0
    1.0000    0.0227         0
    1.0000    0.0341         0
    1.0000    0.0455         0
    1.0000    0.0568         0
    1.0000    0.0682         0
    1.0000    0.0795         0
    1.0000    0.0909         0
    1.0000    0.1023         0
    1.0000    0.1136         0
    1.0000    0.1250         0
    1.0000    0.1364         0
    1.0000    0.1477         0
    1.0000    0.1591         0
    1.0000    0.1705         0
    1.0000    0.1818         0
    1.0000    0.1932         0
    1.0000    0.2045         0
    1.0000    0.2159         0
    1.0000    0.2273         0
    1.0000    0.2386         0
    1.0000    0.2500         0
    1.0000    0.2614         0
    1.0000    0.2727         0
    1.0000    0.2841         0
    1.0000    0.2955         0
    1.0000    0.3068         0
    1.0000    0.3182         0
    1.0000    0.3295         0
    1.0000    0.3409         0
    1.0000    0.3523         0
    1.0000    0.3636         0
    1.0000    0.3750         0
    1.0000    0.3864         0
    1.0000    0.3977         0
    1.0000    0.4091         0
    1.0000    0.4205         0
    1.0000    0.4318         0
    1.0000    0.4432         0
    1.0000    0.4545         0
    1.0000    0.4659         0
    1.0000    0.4773         0
    1.0000    0.4886         0
    1.0000    0.5000         0
    1.0000    0.5114         0
    1.0000    0.5227         0
    1.0000    0.5341         0
    1.0000    0.5455         0
    1.0000    0.5568         0
    1.0000    0.5682         0
    1.0000    0.5795         0
    1.0000    0.5909         0
    1.0000    0.6023         0
    1.0000    0.6136         0
    1.0000    0.6250         0
    1.0000    0.6364         0
    1.0000    0.6477         0
    1.0000    0.6591         0
    1.0000    0.6705         0
    1.0000    0.6818         0
    1.0000    0.6932         0
    1.0000    0.7045         0
    1.0000    0.7159         0
    1.0000    0.7273         0
    1.0000    0.7386         0
    1.0000    0.7500         0
    1.0000    0.7614         0
    1.0000    0.7727         0
    1.0000    0.7841         0
    1.0000    0.7955         0
    1.0000    0.8068         0
    1.0000    0.8182         0
    1.0000    0.8295         0
    1.0000    0.8409         0
    1.0000    0.8523         0
    1.0000    0.8636         0
    1.0000    0.8750         0
    1.0000    0.8864         0
    1.0000    0.8977         0
    1.0000    0.9091         0
    1.0000    0.9205         0
    1.0000    0.9318         0
    1.0000    0.9432         0
    1.0000    0.9545         0
    1.0000    0.9659         0
    1.0000    0.9773         0
    1.0000    0.9886         0
    1.0000    1.0000         0];

    
% CMap =[
%          0    1.0000    1.0000
%     0.0015    0.9539    0.9985
%     0.0030    0.9077    0.9970
%     0.0045    0.8616    0.9955
%     0.0060    0.8155    0.9940
%     0.0074    0.7693    0.9926
%     0.0089    0.7232    0.9911
%     0.0104    0.6771    0.9896
%     0.0119    0.6310    0.9881
%     0.0134    0.5848    0.9866
%     0.0149    0.5387    0.9851
%     0.0164    0.4926    0.9836
%     0.0179    0.4464    0.9821
%     0.0193    0.4003    0.9807
%     0.0208    0.3542    0.9792
%     0.0223    0.3080    0.9777
%     0.0238    0.2619    0.9762
%     0.0253    0.2158    0.9747
%     0.0268    0.1696    0.9732
%     0.0283    0.1235    0.9717
%     0.0298    0.0774    0.9702
%     0.0313    0.0313    0.9688
%     0.1282    0.1282    0.9719
%     0.2250    0.2250    0.9750
%     0.3219    0.3219    0.9782
%     0.4188    0.4188    0.9813
%     0.5156    0.5156    0.9844
%     0.6125    0.6125    0.9875
%     0.7094    0.7094    0.9906
%     0.8063    0.8063    0.9938
%     0.9031    0.9031    0.9969
%     1.0000    1.0000    1.0000
%     1.0000    0.9000    0.9000
%     1.0000    0.8000    0.8000
%     1.0000    0.7000    0.7000
%     1.0000    0.6000    0.6000
%     1.0000    0.5000    0.5000
%     1.0000    0.4000    0.4000
%     1.0000    0.3000    0.3000
%     1.0000    0.2000    0.2000
%     1.0000    0.1000    0.1000
%     1.0000         0         0
%     1.0000    0.0455         0
%     1.0000    0.0909         0
%     1.0000    0.1364         0
%     1.0000    0.1818         0
%     1.0000    0.2273         0
%     1.0000    0.2727         0
%     1.0000    0.3182         0
%     1.0000    0.3636         0
%     1.0000    0.4091         0
%     1.0000    0.4545         0
%     1.0000    0.5000         0
%     1.0000    0.5455         0
%     1.0000    0.5909         0
%     1.0000    0.6364         0
%     1.0000    0.6818         0
%     1.0000    0.7273         0
%     1.0000    0.7727         0
%     1.0000    0.8182         0
%     1.0000    0.8636         0
%     1.0000    0.9091         0
%     1.0000    0.9545         0
%     1.0000    1.0000         0];
     
     
     
     