Quantcast

Documentation Center

  • Trial Software
  • Product Updates

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

| |

Was this topic helpful?