Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.1.0 - 日本語

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ヘルプ >> Elementary Functions > matrixmanipulation > squeeze

squeeze

ハイパー行列のシングルトン次元を削除

呼び出し手順

hypOut = squeeze(hypIn)

引数

hypIn

定数型のハイパー行列または行列.

hypOut

定数型のハイパー行列または行列.

説明

squeezeは, ハイパー行列のシングルトン次元を削除します. これは,大きさが1の任意の次元を 削除することを意味します. 入力hypInが行列の場合,変更されません.

M1 = zeros(2,1,5)
squeeze(M1)
squeeze(M1(:,:,1))

M2 = matrix(1:4, [2 1 2 1])
squeeze(M2)

参照

  • matrix — ベクトルまたは行列を異なる大きさの行列に成形する
  • hypermatrices — Scilab オブジェクト, Scilabの N 次元行列
Report an issue
<< resize_matrix matrixmanipulation matrixoperations >>

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:
Tue Feb 25 08:53:19 CET 2020