MATLAB Answers

User-defined functions problem

1 view (last 30 days)
mozzi gi
mozzi gi on 29 May 2019
Commented: Kevin Phung on 29 May 2019
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 Comment

Kevin Phung
Kevin Phung on 29 May 2019
ok, what have you tried?

Sign in to comment.

Answers (0)