Calling entries in an array of functions?

1 view (last 30 days)
Michael Wu
Michael Wu on 8 Nov 2015
Edited: Michael Wu on 8 Nov 2015
Hi all,
I am currently writing a Jacobian method function that requires me to call entries of an array of functions.
For example, if my function array is this: F=[x(1)^2-x(2)^2; x(1)^2+x(2)^2];
How do I make F(1) correspond to "x(1)^2-x(2)^2" ?
Basically, if I have an array of functions, how do I associate indices to each function entry, so that something like F(1) can be fed into another function as an input?
Thanks in advance!

Answers (0)

Categories

Find more on Resizing and Reshaping Matrices in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!