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

5 ビュー (過去 30 日間)
Emily Gallagher
Emily Gallagher 2019 年 10 月 16 日
編集済み: Matt J 2019 年 10 月 16 日
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.

回答 (1 件)

Matt J
Matt J 2019 年 10 月 16 日
編集済み: Matt J 2019 年 10 月 16 日
To sum the rows of any matrix A,
sum(A,2)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by