Implementation of a matrix

1 view (last 30 days)
Franziska Bömann
Franziska Bömann on 18 Jul 2020
Edited: Bruno Luong on 18 Jul 2020
Hello!
I want to implement the following matrix:
Can anyone show me how to do that?
  2 Comments
KSSV
KSSV on 18 Jul 2020
Implement how?
Franziska Bömann
Franziska Bömann on 18 Jul 2020
I have given a vector and from this I want to create the matrix

Sign in to comment.

Accepted Answer

Bruno Luong
Bruno Luong on 18 Jul 2020
n=3;
>> x=ceil(5*rand(1,n+1))
x =
3 5 1 3
>> M=fliplr(vander(x))
M =
1 3 9 27
1 5 25 125
1 1 1 1
1 3 9 27
  12 Comments
Bruno Luong
Bruno Luong on 18 Jul 2020
Edited: Bruno Luong on 18 Jul 2020
Then your code is likely wrong. You want me to point out where it's wrong? Let me look at my christal-ball: it tells me line #4, column #7 of your MATLAB script

Sign in to comment.

More Answers (2)

madhan ravi
madhan ravi on 18 Jul 2020
x(:).^(0:numel(x))

KSSV
KSSV on 18 Jul 2020
syms x [ 4 4]

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!