Home > atmlab > geoplots > gmt > gmt_unicode_converter.m

gmt_unicode_converter

PURPOSE ^

GMT_UNICODE_CONVERTER % Converts string to something that GMT can read

SYNOPSIS ^

function out = gmt_unicode_converter(string)

DESCRIPTION ^

 GMT_UNICODE_CONVERTER % Converts string to something that GMT can read

 IN   string             Some string to be used in a gmt command call
 OUT  out                The same string in supported utf 

 e.g. kg/m²

 Created by Salomon Eliasson
 $Id: gmt_unicode_converter.m 6862 2011-04-17 20:27:55Z seliasson $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

gmt_unicode_converter.m

SOURCE CODE ^

0001 function out = gmt_unicode_converter(string)
0002 % GMT_UNICODE_CONVERTER % Converts string to something that GMT can read
0003 %
0004 % IN   string             Some string to be used in a gmt command call
0005 % OUT  out                The same string in supported utf
0006 %
0007 % e.g. kg/m²
0008 %
0009 % Created by Salomon Eliasson
0010 % $Id: gmt_unicode_converter.m 6862 2011-04-17 20:27:55Z seliasson $
0011 
0012 out = sprintf('$(echo "%s" |iconv -f utf-8 -t iso-8859-1)',string) ;

Generated on Mon 15-Sep-2014 13:31:28 by m2html © 2005