Implementation of a matrix

1 次查看(过去 30 天)
Hello!
I want to implement the following matrix:
Can anyone show me how to do that?
  2 个评论
Franziska Bömann
Franziska Bömann 2020-7-18
I have given a vector and from this I want to create the matrix

请先登录,再进行评论。

采纳的回答

Bruno Luong
Bruno Luong 2020-7-18
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 个评论
Bruno Luong
Bruno Luong 2020-7-18
编辑:Bruno Luong 2020-7-18
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

请先登录,再进行评论。

更多回答(2 个)

madhan ravi
madhan ravi 2020-7-18
x(:).^(0:numel(x))

KSSV
KSSV 2020-7-18

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by