1. Engineering
  2. Technology
  3. i want help with writing a script in matlab that...

Question: i want help with writing a script in matlab that...

Question details

I want help with writing a script in matlab that can take a variable in a given slot and compare it with other variable in a different slot and give an output using the menu function.

eg a=menu('name of girls','Ruth',Lisa','Jane')
b=('Tom','Tim','Terry','Luke')

Results will say, If Tom asks Ruth out she will say no
If Tom asks Lisa she will say maybe
if Tom asks Jane she will say yes.

I want the program to be able to do the same for all the other boys asking the girls out. the program must have 2 menu functions one for the girls the other for the boys.

Thank you

 

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution