MATLAB: How to eliminate the repeated number

basic function

For example,
number= 1: 10;
t=[1 3 5 7];
What I want to keep is [2 4 6 7 10];
how to do that?
assuming t and number have different dimensions.
In short, I want number array to have no same digits of t.
Thanks

Best Answer

number= 1: 10;
t=[1 3 5 7];
out=setdiff(number,t)