Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.1 - Русский

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

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

Справка Scilab >> Графики > 2d_plot > paramfplot2d

paramfplot2d

animated plot of a 2D parametrized curve.

Calling Sequence

paramfplot2d(f,x,theta)
paramfplot2d(f,x,theta,flag)
paramfplot2d(f,x,theta,flag,rect)

Arguments

x

real vector.

f

function y=f(x,t) . f is a Scilab function or a dynamically linked routine (referred to as a string).

theta

real vector (set of parameters).

flag

string 'no' or 'yes': If "yes" screen is not cleared between two consecutive plots.

rect

"rectangle" [xmin, xmax, ymin, ymax] (1 x 4 real vector),

Description

Animated plot of the function x, t-->f(x,t) for t=theta(1),theta(2),etc. f can be a either Scilab function or a dynamically linked routine since y=f(x,t) is evaluated as y=feval(x(:),t,f). See feval.

f is a mapping x, t--> f(x,t) = R^N valued function for x a vector of R^N and t a real number.

Examples

deff('y=f(x,t)','y=t*sin(x)')
x=linspace(0,2*%pi,50);
theta=0:0.05:1;
clf;paramfplot2d(f,x,theta);
function V=twosoliton(x, t)
  a1=6;s1=2;v1=a1^2;
  a2=4;s2=40;v2=a2^2;
  
  f1=exp(-a1*(x-s1-v1*t));
  f2=exp(-a2*(x-s2-v2*t));
  r=((a2-1)/(a2+a1))^2;
  V=2*(v1*f1+v2*f2+2*(a2-a1)^2*f1.*f2+r*(v2*(f1.^2).*f2+v1*f1.*(f2.^2)))./((1+f1+f2+r*f1.*f2).^2);
endfunction
x=linspace(1,100,3000);
clf;paramfplot2d(twosoliton,x,0:0.05:3);

See Also

  • comet — двумерный график с анимированной кометой
  • plot2d — 2D plot
  • feval — множественное выполнение
  • fplot2d — 2D plot of a curve defined by a function
Report an issue
<< histplot 2d_plot plot >>

Copyright (c) 2022-2024 (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 Oct 02 14:01:08 CEST 2014