help-octave
[Top][All Lists]
Advanced

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

Problem with data conversion


From: Raasch, Hendrik (external)
Subject: Problem with data conversion
Date: Thu, 8 Dec 2011 13:43:37 +0100

Hello,

I have a problem with matrices. Check the following:

octave:88> p_v
p_v =

  1  1  1  1

octave:89> time_tmp
time_tmp =

   3.8593e+08   3.8593e+08   3.8593e+08   3.8593e+08

octave:90> [rot90(time_tmp), rot90(p_v)]
ans =

  255    1
  255    1
  255    1
  255    1


Why is the time_tmp data converted from an floating point value into an eight bit integer??

I assume, that I have just done something wrong. So, can someone tell me what is the correct way of doing this?

Regards,
HR

This email (including any attachments) may contain confidential and/or
privileged information or information otherwise protected from disclosure.
If you are not the intended recipient, please notify the sender immediately,
do not copy this message or any attachments and do not use it for any
purpose or disclose its content to any person, but delete this message and
any attachments from your system.
Astrium disclaims any and all liability if this email transmission
was virus corrupted, altered or falsified.
----------------------------------------------------------------------------
Astrium GmbH
Vorsitzender des Aufsichtsrates: Thomas S. Müller -
Geschäftsführung: Evert Dudok (Vorsitzender), Josef Stukenborg,
Dr. Johannes von Thadden
Sitz der Gesellschaft: München -
Registergericht: Amtsgericht München, HRB Nr. 107647
----------------------------------------------------------------------------
Weitere Informationen über EADS Astrium unter www.astrium.eads.net

reply via email to

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