Mercurial > hg > ltpda
diff m-toolbox/test/test_conj.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/m-toolbox/test/test_conj.m Wed Nov 23 19:22:13 2011 +0100 @@ -0,0 +1,23 @@ +% Tests conj() operator for AOs. +% +% A Monsky 09-05-07 +% +% $Id: test_conj.m,v 1.11 2009/02/02 15:20:38 hewitson Exp $ +% +function test_conj() + + % make test complex data + td = complex(randn(10,1), randn(10,1)); + + % Load data into analysis objects + a1 = ao(td); + a1.setName; + + % Calc complex conjugate + a2 = conj(a1); + + % Plot + iplot(real(a1), real(a2), imag(a1), imag(a2), plist('Markers', {'All', 'o'})) + +end +% END \ No newline at end of file