Compute all third degree monomials out of a given vector
Mostrar comentarios más antiguos
Suppose you are given a vector 

How can one effieciently construct a vector containing all third degree monomials of the vector entries? That is a vector of dimension
containing the entries
.
containing the entries 5 comentarios
darova
el 30 de Mayo de 2019
What is your question?
Mohamed Abdalmoaty
el 30 de Mayo de 2019
Mohamed Abdalmoaty
el 3 de Jun. de 2019
Editada: Mohamed Abdalmoaty
el 3 de Jun. de 2019
Matt J
el 4 de Jun. de 2019
For me too.
Respuestas (1)
p=eps(u);
p(u<0)=-p(u<0);
logresult = nchoosek(log(u+p),2)*[3 2 1 0 ; 0 1 2 3];
result= real(exp(logresult))
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
