Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
