Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Very simple matlab question. I am trying to use the code displayed in the pictures and i am getting the error - undefined function or
Very simple matlab question. I am trying to use the code displayed in the pictures and i am getting the error - undefined function or variable msort. How can i define the function. Do i need to save the script?
Answer: Main m: a-2; b 1 c 4 e 3 b msort (a,b, c, e); msort.m: function b msort (a, b,c, e) msort sort the given values A [a, b, c,e] b sort (A) d descend sort (A, d) Sample output: 2 1 4 3 1 2 3 4 ans 4 2 1 sh-4.3$ Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started