Effacer les filtres
Effacer les filtres

Formulation to Matlab code

2 vues (au cours des 30 derniers jours)
Maroco Sc
Maroco Sc le 27 Sep 2019
Commenté : rough93 le 27 Sep 2019
How to write this formulation in Matlab:
form3.JPG
where p = 1; g is a vector; j= length(g); x is a vector
phi = sum( norm(max(0,g)) );
form4.JPG
phi = max( max(0,g) );
are they corect or not?
  1 commentaire
rough93
rough93 le 27 Sep 2019
Ensure your max usage is correct
max(A,B) returns an array with the largest elements taken from A or B.
If this is correct for your application then the sum, norm is correct, you need to raise your first equation to the pth power also.

Connectez-vous pour commenter.

Réponses (1)

Alex Pedcenko
Alex Pedcenko le 27 Sep 2019
seems OK

Catégories

En savoir plus sur Programming dans Help Center et File Exchange

Tags

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by