Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Defining matrix of functions

Status
Not open for further replies.

Geraud

Structural
May 9, 2005
3
0
0
FR
Hi,

I would like to create a matrix of functions (eg F(t)) by defining every component as a function of the indexes (eg Fp,q=p+q .

The thing is I cannot do it entering "F(t)pq=..." ("the left side cannot be defined(...)")

Has someone a solution ?

Thanks in advance,

Géraud
 
Replies continue below

Recommended for you

Doesn't F(t,p,q):=whatever work?

Then say

t:15
p:0;5
q:0;5

Result[p,q:F(t,p,q)

will create a 6x6 array of answers based on F, t, and the location in the array

Cheers

Greg Locock

Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.
 
Try using the build in MathCad function matrix(m,n,F)

This creates a matrix in which the ij[sup]th[/sup] element contains F(i,j).
[sub] where:
p= 0,1..m-1 & q=0,1.. n-1.[/sub]

This has a limit since the argument "F" is defined as a function of two variables only.

Result=matrix(m,n,F)

If that do not work for your application,try using he programming function in MathCad.
 
Status
Not open for further replies.
Back
Top