help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Number of arguments of a fcn handle


From: marco Vassallo
Subject: RE: Number of arguments of a fcn handle
Date: Mon, 7 Oct 2013 15:16:41 +0200

> Why do you need that?
>

because for the BC I would like to do something like

bc = DirichletBC(V, @(x, y, z, nx, ny, nz) sin(5*x) * ny, 1);

where nx, ny and nz are the component of the normal vector.
At the moment I'm doing something like

bc = DirichletBC(V, @(x, y, z) sin(5*x), 1);

and thus the only difference in the signature of these two functions is
the number of arguments, but these two functions have to be implemented in a different way.

maybe I can put an extra flag which the user should set to true if he is using a normal vector.

Marco

>
> c.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]