From: m y on
Hey all
Does anybody know about the multivariable function in matlab. I have a function
f=(f1,f2)' with two components f1 and f2.
where
f1= function of x,y , f2 also depends on x,y coordinates
..Kindly guide me if there is vecor valued function in matlab?
Best regards
From: John D'Errico on
"m y" <ailojee(a)gmail.com> wrote in message <hhj36v$1jh$1(a)fred.mathworks.com>...
> Hey all
> Does anybody know about the multivariable function in matlab. I have a function
> f=(f1,f2)' with two components f1 and f2.
> where
> f1= function of x,y , f2 also depends on x,y coordinates
> .Kindly guide me if there is vecor valued function in matlab?
> Best regards

Trivially so. Any function that returns a vector is a
vector valued function.

John
From: m y on
"John D'Errico" <woodchips(a)rochester.rr.com> wrote in message <hhj4v6$j6a$1(a)fred.mathworks.com>...
> "m y" <ailojee(a)gmail.com> wrote in message <hhj36v$1jh$1(a)fred.mathworks.com>...
> > Hey all
> > Does anybody know about the multivariable function in matlab. I have a function
> > f=(f1,f2)' with two components f1 and f2.
> > where
> > f1= function of x,y , f2 also depends on x,y coordinates
> > .Kindly guide me if there is vecor valued function in matlab?
> > Best regards
>
> Trivially so. Any function that returns a vector is a
> vector valued function.
> Thanks for response but I am looking for matlab command to run this function? I know that it is a vector valued but I am looking for a command for vector valued function. One way is simply define each component as a scalar function, but thats not the case with my problem.

I want to look at function where you give input vectors and function command on the given input will result a vector.
> John
From: John D'Errico on
"m y" <ailojee(a)gmail.com> wrote in message <hhj8fm$r6c$1(a)fred.mathworks.com>...
> "John D'Errico" <woodchips(a)rochester.rr.com> wrote in message <hhj4v6$j6a$1(a)fred.mathworks.com>...
> > "m y" <ailojee(a)gmail.com> wrote in message <hhj36v$1jh$1(a)fred.mathworks.com>...
> > > Hey all
> > > Does anybody know about the multivariable function in matlab. I have a function
> > > f=(f1,f2)' with two components f1 and f2.
> > > where
> > > f1= function of x,y , f2 also depends on x,y coordinates
> > > .Kindly guide me if there is vecor valued function in matlab?
> > > Best regards
> >
> > Trivially so. Any function that returns a vector is a
> > vector valued function.
> > Thanks for response but I am looking for matlab command to run this function? I know that it is a vector valued but I am looking for a command for vector valued function. One way is simply define each component as a scalar function, but thats not the case with my problem.
>
> I want to look at function where you give input vectors and function command on the given input will result a vector.
> > John

Still trivial. You need to start reading the getting
started documentation.

John
From: Matt J on
"m y" <ailojee(a)gmail.com> wrote in message <hhj36v$1jh$1(a)fred.mathworks.com>...
> Hey all
> Does anybody know about the multivariable function in matlab. I have a function
> f=(f1,f2)' with two components f1 and f2.
> where
> f1= function of x,y , f2 also depends on x,y coordinates
> .Kindly guide me if there is vecor valued function in matlab?


I don't know if it helps, but here's an example

>> f=@(x,y) [x+y;x-y] %A vector-valued function

f =

@(x,y)[x+y;x-y]


>> f(1,2) %evaluate at x=1, y=2

ans =

3
-1
 |  Next  |  Last
Pages: 1 2
Prev: 64b/66b encoding and scrambling
Next: Custom colormap