Change language to:
English - Français - Português

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
See the recommended documentation of this function

Scilab help >> Elementary Functions > char

# char

char 関数

### 呼び出し手順

```y=char( x)
y=char(st1,st2,st3,....)```

x

st1,st2,st3

y:

### 説明

`入力引数が一つの場合 :`

アスキーコード`x`の配列を指定すると, この関数はそのアスキーコードに対応する文字列の配列 `y` を返します. dims (`x`)=[n1,n2,n3,n4,....], は,2番目の dims 以外は入力値と同じ大きさの値, dims(`y`)=[n1,n3,n4,..] を返します.

`入力引数が1より多い場合 :`

### 例

```//Example with a hypermatrix of ascii codes :
x=hypermat([4,2,3],61:84);
y=char(x)
size(x)
size(y)

//Example with more than one argument :
st1="zeros";
st2=["one","two"];
st3=["three"];
y=char(st1,st2,st3)
size(y)

//all strings rows are completed by 'blanks' to have the same length : 6
length(y)```

### 参照

• asciimat — string matrix ascii conversions

### 作者

F.B

 << cellstr Elementary Functions delip >>

 Copyright (c) 2022-2023 (Dassault Systèmes)Copyright (c) 2017-2022 (ESI Group)Copyright (c) 2011-2017 (Scilab Enterprises)Copyright (c) 1989-2012 (INRIA)Copyright (c) 1989-2007 (ENPC)with contributors Last updated:Thu May 12 11:45:49 CEST 2011