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

5 visualizaciones (últimos 30 días)
Emily Gallagher
Emily Gallagher el 16 de Oct. de 2019
Editada: Matt J el 16 de Oct. de 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.

Respuestas (1)

Matt J
Matt J el 16 de Oct. de 2019
Editada: Matt J el 16 de Oct. de 2019
To sum the rows of any matrix A,
sum(A,2)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by