Home > data-vis > supporting_functions > plot_no_underline.m

plot_no_underline

PURPOSE ^

SYNOPSIS ^

function result = plot_no_underline(var_name)

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function result = plot_no_underline(var_name)
0002     if ~iscell(var_name)
0003         var_name = {var_name};
0004     end
0005         
0006     for i = 1:length(var_name)
0007         var_name_one = var_name{i};
0008         result_one = '';
0009         for j = 1:size(var_name_one,2)
0010             c = var_name_one(j);
0011             if c == '_'
0012                 c = '-';
0013             end
0014             result_one = [result_one c];
0015         end
0016         result{i} = result_one;
0017     end
0018     
0019     if length(result) == 1
0020         result = cell2mat(result);
0021     end
0022 end

Generated on Tue 23-May-2017 02:00:59 by m2html © 2005