The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Matrix of functions (Can be defined or not)
Replies: 5   Last Post: Aug 14, 2017 10:54 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Dinesh Bhati

Posts: 24
Registered: 8/4/10
Matrix of functions (Can be defined or not)
Posted: Dec 27, 2010 6:15 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Dear All,
How can a matrix of functions like

Matfun= [2*x^2+5 3*x^3+7x^2+3
4*x^5+9 6*x+4]
Can be evaluated using a for loop for any value of x for e.g. x=4;

I Want to know, is it possible to create a matrix of functions and if it can be accessed in a for loop like

For i=1:2 for j=1:2 val(I,j)=matfun(I,j) …………… end; end;

or if there is any other way


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.