cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Automatically create matrix with changing function

ptc-5044909
1-Newbie

Automatically create matrix with changing function

Hi all,

I am trying to solve the following problem:

For some analysis using the variable "xi" I need to construct a vector. In this vector, every entry is a function of xi^k, in which k is the row number and xi must stay a variable.

Now, I could just enter this by hand as a matrix, however, would it not that I need about 100 rows. Yeah, that is too time consuming.

So, I am looking for a method to construct this matrix automatically but have not succeeded yet.

What I want is some function/program that, when putting in the amount of rows (k) and the function of xi f(xi,k), it constructs a vector with xi as a variable and k evaluated depending on the row position. I attached the file for clarification.

Do you know a solution?

Thanks a lot!

1 ACCEPTED SOLUTION

Accepted Solutions

Find attached some ways of doing what you want.

View solution in original post

2 REPLIES 2

Find attached some ways of doing what you want.

Many thanks!

Top Tags