Q:

The set functions can be used with cell arrays of strings. Create two cell arrays to store (as strings) course numbers taken by two students. For example,

0

 The set functions can be used with cell arrays of strings. Create 

two cell arrays to store (as strings) course numbers taken by two 

students. For example,

s1 = {'EC 101', 'CH 100', 'MA 115'};

s2 = {'CH 100', 'MA 112', 'BI 101'};

Use a set function to determine which courses the students have in 

common.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

>> intersect(s1,s2)

ans = 

 'CH 100'

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now