Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

numlib::toAscii

ASCII encoding of a string

MuPAD® notebooks are not recommended. Use MATLAB® live scripts instead.

MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.

Syntax

numlib::toAscii(s)

Description

numlib::toAscii(s) returns the list of ASCII codes of the characters in the string s.

numlib::toAscii returns an error if its argument is not a string.

Examples

Example 1

The ASCII coding of a well-known name:

numlib::toAscii("MuPAD - Multi Processing Algebra Data Tool")

and the ASCII coding of an empty string:

numlib::toAscii("")

Parameters

s

A string

Return Values

numlib::toAscii(s) returns a list of nonnegative integers.

See Also

MuPAD Functions

Was this topic helpful?