Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.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 manual >> Elementary Functions > flipdim

flipdim

指定した次元に沿って x の要素を反転

呼び出し手順

y=flipdim(x,dim)

パラメータ

x

実数のスカラー, ベクトルまたは配列

dim

正の整数

y

実数のスカラー, ベクトルまたは配列

説明

実数のスカラー/ベクトル/配列 xと正の整数dim を指定すると, この関数はxの次元番号 dim に沿って x の要素を反転します. (x および y は同じ大きさとなります)

// 例 1: x の要素を最初の次元に沿って反転
x=[1 2 3 4; 5 6 7 8];
dim=1;
y=flipdim(x,dim)

// 例2: x の要素を2番目の次元に沿って反転
dim=2;
y=flipdim(x,dim)

// 例3: x の要素を3番目の次元に沿って反転
x=matrix(1:48,[3 2,4,2]);
dim=3;
y=flipdim(x,dim)

作者

F.Belahcene

<< eye Elementary Functions gsort >>

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:
Wed Jan 26 16:25:03 CET 2011