Prev: How can I find the mean between to points of normal distribution?
Next: Merging of plots / figures
From: dpb on 2 Aug 2010 20:03 Joseph Cohen wrote: .... > I have a ... matrix containing doubles ... I then typecast > it to uint8 ... > .... > ... The ... 'matrix' is also double values between 0 and 1: > 0.4858 0.5640 0.9546 0.7568 0.6616 0.4761 > 0.7373 0.6689 .... >> m=[0.4858 0.5640 0.9546 0.7568 0.6616 0.4761 0.7373 0.6689]; >> u = uint8(m) u = 0 0 0 0 0 0 0 0 >> whos m u Name Size Bytes Class m 1x8 64 double array u 1x8 8 uint8 array Grand total is 16 elements using 72 bytes >> ?????????????? Crystal ball broke on this one... :( --
From: James Tursa on 2 Aug 2010 20:18 dpb <none(a)non.net> wrote in message <i37mi7$p62$1(a)news.eternal-september.org>... > > >> m=[0.4858 0.5640 0.9546 0.7568 0.6616 0.4761 0.7373 0.6689]; > >> u = uint8(m) OP did a typecast to get the uint8, not a cast. James Tursa
First
|
Prev
|
Pages: 1 2 Prev: How can I find the mean between to points of normal distribution? Next: Merging of plots / figures |