Products & Services Solutions Academia Support User Community Company

Learn more about Fixed-Point Toolbox   

tostring - Convert numerictype or quantizer object to string

Syntax

s = tostring(T)
s = tostring(q)

Description

s = tostring(T) converts numerictype object T to a string s such that eval(s) would create a numerictype object with the same properties as T.

s = tostring(q) converts quantizer object q to a string s. After converting q to a string, the function eval(s) can use s to create a quantizer object with the same properties as q.

Examples

This example uses the tostring function to convert a numerictype object T to a string s

T = numerictype(true,16,15);
s = tostring(T);
T1 = eval(s);
isequal(T,T1)

ans =

     1

See Also

eval, numerictypequantizer

  


Free Early Verification Kit

Learn how to apply early verification to your development process through these technical resources.

How much time do you spend on testing to ensure implementation meets system-level requirements?

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS