anonymous
2012-04-16 08:52:07 UTC
function result=Nation('strA')
values=double('strA')
however, when i try it out i get the error code:
-----" Undefined function or method 'Nation' for input arguments of type 'char'"
i assume this means my coding is incorrect in that my function hasnt been told how to accept words/characters as input?
***How do you create a function so that it will accept a character string for input?***
thank you