Math 9 Homework 3Winter 2020Write the following functions files in Matlab, create a zip file containing these files and upload this zipfile to Canvas. To receive full credit, you must use the exact function names given below, and you mustnot have extra terms getting printed to the screen. Make sure your file name is the same as your functionname. The name of your zip file should be homework3.zipYou are only allowed to use the following built-in terms/commands/functions: for, while if/elseif/else,true, false, length. You can also use symbols such as *,require writing out in words. You may build your own functions which mimics pre-existing functions anduse them.1. Write a function custom min(v) which takes as input a vector代做Canvas留学生作业、代做Matlab语言作业、代写Matlab程序设计作业 代做留学生Processing|代做 v and as output returns the smallestelement of v. For example custom min([1 2 -3 -2]) will return -3. (Don’t use min())2. Write a function remove elt(v,n) that takes as input a vector v and a number n and as output returnsa vector that is the same as v but with the single value of n removed. For example, remove elt([-2 1 31 5], 1), then the output should be either [-2 3 1 5] or [-2 1 3 5].3. Write a function custom sort(v) that takes as input a vector v and as output returns the vector v sortedinto increasing order.4. Write a function is sorted(v) that returns true if v is sorted in increasing order and returns falseotherwise.5. Write a function backwards sort(v) that takes as input a vector v and as output returns the vector vsorted into decreasing order.1转自:http://www.6daixie.com/contents/12/4809.html
讲解:Canvas、Matlab、MatlabProcessing|SQL
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。