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

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 >> Graphics > 2d_plot > champ

champ

2次元ベクトルフィールドのプロット

呼び出し手順

champ(x,y,fx,fy,[arfact,rect,strf])
champ(x,y,fx,fy,<opt_args>)

パラメータ

x,y

グリッドを定義するベクトル.

fx

ベクトルフィールドのx要素を記述する行列. fx(i,j) は点(x(i),y(j))における ベクトルフィールドのx要素です.

fy

ベクトルフィールドのy要素を記述する行列. fy(i,j) は点(x(i),y(j))における ベクトルフィールドのy要素です.

<opt_args>

一連の命令 key1=value1,key2=value2,... を表します. ただし, key1, key2,... には以下のどれかを指定可能です: arfact, rect, strf (以下参照).

arfact

実数型のオプションの引数で, プロット時の矢じりの表示用のスケールファクタを指定します. (デフォルト値は 1.0).

rect

使用するグラフィックフレームの境界を指定する ベクトルrect=[xmin,ymin,xmax,ymax].

strf

長さ3の文字列 "xyz" で,plot2dstrfパラメータと意味は同じです. 最初の文字xはchampでは意味がありません.

説明

champ は2次元ベクトルフィールドを描画します. 矢印の長さはフィールドのインテンシティに比例します.

フィールドのインテンシティに依存した色を有する色付の矢印を 使用したい場合,champ1を使用してください.

コマンド champ() を入力するとデモが表示されます.

// rect をプロット境界として使用
champ(-5:5,-5:5,rand(11,11),rand(11,11),rect=[-10,-10,10,10],arfact=2)
// 境界を取得するために (x,y) を使用
clf()
champ(-5:5,-5:5,rand(11,11),rand(11,11),2,[-10,-10,10,10],"021")

参照

  • champ1 — 色付の矢印を有する2次元ベクトルフィールドのプロット
  • fchamp — 2次元1階常微分方程式(ODE)のフィールド方向
  • plot2d — 2Dプロット

作者

J.Ph.C.

<< Sgrayplot 2d_plot champ1 >>

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:56 CEST 2011