Write a MATLAB function for each exercises.Submission:Put all in one ZIP file.Grade: by effort
1) even_oddtest if a number is even/oddInput: data-- an integerOutput: [even odd] -- 1 if true, 0 otherwiseExample: [e o] = even_odd(4) --> eHint: find()
2) pos_numInput: data -- an integer arrayOutput: ret -- number of positive numbers in dataExample: r = pos_num([ XXXXXXXXXX]) --> 2Hint: find()
3) rm_dupremove duplicate element of an arrayvalues having the same ordernot using unique(data, 'stable');
Input: data -- an arrayOutput: ret -- resulting arrayExample: r = rm_dup([ XXXXXXXXXX]) --> [1 2 3]Hint: unique()
4) rm_dup in GUITwo textfields and one button, no error check required
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here