Implementation of a matrix

조회 수: 1 (최근 30일)
Franziska Bömann
Franziska Bömann 2020년 7월 18일
편집: Bruno Luong 2020년 7월 18일
Hello!
I want to implement the following matrix:
Can anyone show me how to do that?
  댓글 수: 2
KSSV
KSSV 2020년 7월 18일
Implement how?
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
Franziska Bömann
Franziska Bömann 2020년 7월 18일
I got it now!
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에서 Mathematics에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by