I want to know code for Norm of any matrix ?

I am taking Numerical methods for engineering. and it says that i have to write a user-defined Matlab function (M file) to calculate the 1 - norm of any matrix and infinity norm matrix.
it does not say anything in the book and i searched all over....
I really need codes for these. thanks for looking my question.

回答 (1 件)

Matt Fig
Matt Fig 2011 年 2 月 6 日

1 投票

Give this a try:
help norm
After you read the text, you should know how to proceed.

1 件のコメント

Jan
Jan 2011 年 2 月 6 日
If you implement a matrix norm using the code shown in "help norm", use "sum(X, 1)" instead of "sum(X)" to consider row vectors also.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeMathematics についてさらに検索

質問済み:

2011 年 2 月 6 日

Community Treasure Hunt

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

Start Hunting!

Translated by