Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use Matlab to solve problem. Please Solve using Masking techniques. To receive a thumbs up do not use Conditional Statements or Iterations(aka Loops). Function Name:
Use Matlab to solve problem. Please Solve using Masking techniques. To receive a thumbs up do not use Conditional Statements or Iterations(aka Loops).
Function Name: flowerPicking Inputs: 1. (char) The type of flower to pick 2. (char) 1XN string representing an assortment of various flowers 3. (double) 1xN vector that holds how many days each flower has been stored Outputs: 1. (char) A statement on the type of flower and how many you picked 2. (double) How many of those flowers were wilted Banned Functions: strfind Topics: (masking), (strings and vectors) Background: Valentine's day is coming up and you are trying to secure a date! You have been following your crush (not creepily) to figure out what type of flowers they would like and alas you get the answer! With this information you go to the flower shop just to be met with so many different options it would take forever to find all the right ones, but luckily you remembered to bring your laptop so MATLAB can save the day! Function Description: The desired flower is given as a single letter: 'r'(rose), 't'(tulip), 'd'(daisy), 'p'(petunia), and 'c'(carnation) (input 1). You are also provided with a vector representing the flowers that exist in the flower shop (input 2). Find how many desired flowers there are in the shop, and output a sentence in the following format (output 1): the desired flower> of the right There are/isStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started