simple operations

2 次查看(过去 30 天)
Steven
Steven 2011-11-10
Hi, I'm seeking the way to erase repeated value into vector, like this:
a = [0 0 1 2 2 2 7];
b = something(a);
b = [0 1 2 7]
thx

采纳的回答

Dr. Seis
Dr. Seis 2011-11-10
a = [0 0 1 2 2 2 7];
b = unique(a);
b = [0 1 2 7]

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Develop Apps Using App Designer 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by