In response to comment suggested by Eric above (Dated: 11 Feb 2009):
I tried copying unicode characters from word, and they show ok in the script editor, but on the figure, they show as "?".
Any one else has noticed this, and have a solution??
I dont want to download this script file just to write character π in the ticklabel.
Another comment I wanted to add:
the datenum() function [the way we use it here..] does exactly what my last line of code does. So to answer your question of what purpose this code serves, is it checks for string validity to conform to a time string..
So for people who do not want to write that from scratch, this code could be used off-the-shelf.
You are right Jos, that this is possible...
In my case, I was doing some additional time processing because of which I had to write that function...and thought it could be useful on the web...without thinking about datenum()...
Another comment I wanted to add:
the datenum() function [the way we use it here..] does exactly what my last line of code does. So to answer your question of what purpose this code serves, is it checks for string validity to conform to a time string..
So for people who do not want to write that from scratch, this code could be used off-the-shelf.
You are right Jos, that this is possible...
In my case, I was doing some additional time processing because of which I had to write that function...and thought it could be useful on the web...without thinking about datenum()...
First, what use does this submission offer, except as a simple programming example, since we are already equiped with DATENUM?
Second, what about actually using datenum to get these integer values; something like:
datenum(0,0,0,H,M,S) ./ datenum(0,0,0,0,0,0.001)
Another comment I wanted to add:
the datenum() function [the way we use it here..] does exactly what my last line of code does. So to answer your question of what purpose this code serves, is it checks for string validity to conform to a time string..
So for people who do not want to write that from scratch, this code could be used off-the-shelf.
You are right Jos, that this is possible...
In my case, I was doing some additional time processing because of which I had to write that function...and thought it could be useful on the web...without thinking about datenum()...
First, what use does this submission offer, except as a simple programming example, since we are already equiped with DATENUM?
Second, what about actually using datenum to get these integer values; something like:
datenum(0,0,0,H,M,S) ./ datenum(0,0,0,0,0,0.001)
Comment only