User-defined functions problem

8 ビュー (過去 30 日間)
mozzi gi
mozzi gi 2019 年 5 月 29 日
コメント済み: Kevin Phung 2019 年 5 月 29 日
ppppprooooooblem.jpg
1.Create a user-defined function that calculates the p-norm value by entering vector x and p. (p uses a value of 1,2,inf) . User-defined function name is pnorm. If you enter a number other than 1,2, let's print the string 'error circles' (using switch).
2.Write a script file that outputs values of 1-norm , 2-norm , and inf-norm for x[1,-1,2,5,-6] using the functions written in question 1.
i don't know everything but i know one thing this problem is so hard to solve please explain this easy thx
  1 件のコメント
Kevin Phung
Kevin Phung 2019 年 5 月 29 日
ok, what have you tried?

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by