| Contents | Index |
s = tostring(T)
s = tostring(q)
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.
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 =
1eval | numerictype | quantizer

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-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |