Skip to main content
1-Visitor
April 8, 2013
Solved

Automatically create matrix with changing function

  • April 8, 2013
  • 1 reply
  • 1867 views

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!

Best answer by Werner_E

Find attached some ways of doing what you want.

1 reply

Werner_E25-Diamond IAnswer
25-Diamond I
April 8, 2013

Find attached some ways of doing what you want.

1-Visitor
April 8, 2013

Many thanks!