[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Mon, 12 Mar 2007 12:35:34 -0500
Thunderbird 18.104.22.168 (Windows/20070221)
Thank you. I will give that a shot.
Søren Hauberg wrote:
How about this function:
function B = cast(A, newclass)
B = feval(newclass, A);
If it were to be included in octave it would need to include some
input checking but otherwise I think it does what you need.
David Grohmann skrev:
I attempted to do a cast in octave 2.9.9 and it was not defined.
a = cast( 3.14159, 'uint32')
where 'a' should equal 3 afterwards
does this function still need to be written? seems easy enough,
perhaps I could write the mex file to do it?
is there another way to achieve this?
Senior Student Associate
Applied Research Lab : UT Austin : ESL - S206
- casting, David Grohmann, 2007/03/09
- Re: casting, Søren Hauberg, 2007/03/09
- Re: casting,
David Grohmann <=