help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: number or date? how to know type data


From: Doug Stewart
Subject: Re: number or date? how to know type data
Date: Sun, 10 Mar 2019 10:40:28 -0400



On Sun, Mar 10, 2019 at 6:51 AM gigiolone123 <address@hidden> wrote:
hi


example:

v=1

vv=23.1.2019

i want to know which type of data it's

v is a number

vv is a date

i use typeinfo but is not correct


You can use:
typeinfo
whos
class
and they will tell you that vv is a vector of chars. (a string)
Now if you use this in some code that is looking for a date string
then it will be used as a date but it is just some chars.


 
--
DASCertificate for 206392


reply via email to

[Prev in Thread] Current Thread [Next in Thread]