Question: Please use MATLAB as programming language. Problem 1 O solutions submitted (max: Unlimited) You have a a list of pincodes that you need to edit
Please use MATLAB as programming language.
Problem 1 O solutions submitted (max: Unlimited) You have a a list of pincodes that you need to edit so they are accepted by a new machine. The pincode is a vector containing n values, each between 0 and 9. Create a function PincodeEdit that: 1. Takes an input a vector Pincode. 2. Stores the indices of any consecutive numbers that are same in Pincode in a vector called Indices. 3. Deletes these consecutive numbers that are the same using their indices stored in the vector Indices. 4. Outputs the new edited Pincode vector called EditPin. Hint: As an example, Pincode can be (1 55 2 6 7 8 9 4 4 6 2 2). Indices =[3 10 13] Your function will output EditPin=[1 5 2 6 7 8 9 4 6 2]. Initialize EditPin=Pincode. Function Reset MATLAB Documentation
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
