I have a problem of x=[1 3 4 2 3] … I want its answer should be a=[1 3 5 2 4]and not in form of a=[1 3 4 2 3]…
These are not giving desired results [~,a]=sort(x) [a,b]=unique(x)
a]=sort(x) [ab]=unique(x)i have a problem of x=[1 3 4 2 3] ... i want its answer should be a=[1 3 5 2 4]and not in form of a=[1 3 4 2 3]... these are not giving desired results [~
Best Answer