[go: up one dir, main page]

Menu

[73c35b]: / anal / diff_val.m  Maximize  Restore  History

Download this file

10 lines (7 with data), 257 Bytes

1
2
3
4
5
6
7
8
9
% diff_val.m: Function returns differing elements of a vector in ascending order
% GUISDAP v.1.60 96-05-27 Copyright Asko Huuskonen and Markku Lehtinen
%
% function val=diff_val(vec);
function val=diff_val(vec);
val=sort(vec);
val(find(diff(val)==0))=[];