Find difference of two set as per example - MATLAB Cody - MATLAB Central

Problem 2875. Find difference of two set as per example

Difficulty:Rate

Find difference of two set as per example

Say x=[1:5] and y=[2:6]

then, set_diff(x,y) should give output[1] and set_diff(y,x) should give output[6]

Solution Stats

58.44% Correct | 41.56% Incorrect
Last Solution submitted on Dec 07, 2024

Solution Comments

Show comments

Problem Recent Solvers84

Suggested Problems

More from this Author70

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Go to top of page