Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - Português -

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

Scilab help >> Elementary Functions > matrixmanipulation > resize_matrix

resize_matrix

呼び出し手順

`resMat = resize_matrix(mat,nbRow,nbCol,[typeOfMat])`

mat

nbRow

nbCol

typeOfMat

resMat

例

```// 数値行列
myMat = 5 * rand( 3, 4 )
myMat = resize_matrix( myMat, 3, 3 ) // 行列の大きさを縮小
myMatInteger = resize_matrix( myMat, 4, 4, 'int32' ) // 整数行列を作成
myMatBoolean = resize_matrix( myMat, 2, 2, 'boolean' )
myMatBoolean = resize_matrix( myMatBoolean, 3, 5 )

// 文字列行列
myMatString = ["Scilab","the";"Open Source","Scientific";"Software","Package"]
myMatString = resize_matrix( myMatString, 3, 1 )```

参照

• matrix — ベクトルまたは行列を異なる大きさの行列に成形する
• size — オブジェクトの大きさ
• typeof — オブジェクトの型

作者

Jean-Baptiste Silvy

Comments

Add a comment:
Please login to comment this page.

 << repmat matrixmanipulation matrixoperations >>

 Scilab EnterprisesCopyright (c) 2011-2017 (Scilab Enterprises)Copyright (c) 1989-2012 (INRIA)Copyright (c) 1989-2007 (ENPC)with contributors Last updated:Wed Oct 05 12:12:38 CEST 2011