Effacer les filtres
Effacer les filtres

Implementation of a matrix

2 vues (au cours des 30 derniers jours)
Franziska Bömann
Franziska Bömann le 18 Juil 2020
Modifié(e) : Bruno Luong le 18 Juil 2020
Hello!
I want to implement the following matrix:
Can anyone show me how to do that?
  2 commentaires
KSSV
KSSV le 18 Juil 2020
Implement how?
Franziska Bömann
Franziska Bömann le 18 Juil 2020
I have given a vector and from this I want to create the matrix

Connectez-vous pour commenter.

Réponse acceptée

Bruno Luong
Bruno Luong le 18 Juil 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 commentaires
Franziska Bömann
Franziska Bömann le 18 Juil 2020
I got it now!
Bruno Luong
Bruno Luong le 18 Juil 2020
Modifié(e) : Bruno Luong le 18 Juil 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

Connectez-vous pour commenter.

Plus de réponses (2)

madhan ravi
madhan ravi le 18 Juil 2020
x(:).^(0:numel(x))
  1 commentaire
Franziska Bömann
Franziska Bömann le 18 Juil 2020
thank you!

Connectez-vous pour commenter.


KSSV
KSSV le 18 Juil 2020

Catégories

En savoir plus sur Matrices and Arrays dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by