How to write your own function for infinity-norm of a matrix

8 vues (au cours des 30 derniers jours)
Emily Gallagher
Emily Gallagher le 16 Oct 2019
Modifié(e) : Matt J le 16 Oct 2019
How do I write a function for infinity-norm of some matrix without using the built-in Matlab function? I do not know how to compute the summation of the rows of the matrix.

Réponses (1)

Matt J
Matt J le 16 Oct 2019
Modifié(e) : Matt J le 16 Oct 2019
To sum the rows of any matrix A,
sum(A,2)

Catégories

En savoir plus sur Mathematics dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by