Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: Français - Português - Русский - 日本語
Scilab Help >> Strings > ascii

ascii

string ASCII conversions

Syntax

a = ascii(txt)
txt = ascii(a)

Arguments

txt

a character string or a matrix of character strings.

a

a vector of integer ASCII codes

Description

This function converts Scilab string to a vector of ASCII code (the first 127 codes are ASCII) or vector of ASCII code to Scilab strings.

If txt is a matrix of string, ascii(txt) is equivalent to ascii(strcat(txt)).

Examples

ascii(["hello";"world"])
ascii("scilab")
ascii([115 99 105 108 97 98])

See Also

  • asciimat — string matrix ASCII conversions
Scilab Enterprises
Copyright (c) 2011-2015 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Jun 15 08:27:39 CEST 2016