Write a function in MATLAB for Shoe.m represents a card shoecontaining deck(s) of cards that can contain either a finite numberof cards or infinite cards. You must first initialize the deck(s)of cards contained in the shoe and then implement the shufflingmechanism in shuffle. Then, you must perform the distribution ofcards (refer to the distribute function) for both the case wherethere are finite cards (just return the next n cards in obj.cards)and infinite cards (sample with replacement from obj.cards). TheTODO comments here should be extremely helpful. Remember the returnvalue should be stored in the variable to which the function isassigned. *Note:
OR
OR