This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Change part(s) of form


f = fnchg(f,part,value)


f = fnchg(f,part,value) returns the given function description f but with the specified part changed to the specified value.

The character vector part can be (the beginning character(s) of) :


The dimension of the function's target


The basic interval of that form

The specified value for part is not checked for consistency with the rest of the description in f in case the character vector part terminates with the letter z.


fndir(f,directions) returns a vector-valued function even when the function described by f is ND-valued. You can correct this by using fnchg as follows:

fdir = fnchg( fndir(f,directions),...
           'dim',[fnbrk(f,'dim'),size(directions,2)] );

See Also