Answered step by step
Verified Expert Solution
Link Copied!

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?
image text in transcribed
image text in transcribed
image text in transcribed
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Successful Keyword Searching Initiating Research On Popular Topics Using Electronic Databases

Authors: Randall MacDonald, Susan MacDonald

1st Edition

0313306761, 978-0313306761

More Books

Students also viewed these Databases questions