view m-toolbox/test/fsdata_class_test.m @ 16:91f21a0aab35
database-connection-manager
Update utils.jquery
* * *
Update utils.jmysql.getsinfo
author |
Daniele Nicolodi <nicolodi@science.unitn.it> |
date |
Mon, 05 Dec 2011 16:20:06 +0100 (2011-12-05) |
parents |
f0afece42f48 |
children |
|
line source
function fsdata_class_test()
% Test script for frequency-series (fsdata) class.
%
%
% M Hewitson 31-01-07
%
% $Id: fsdata_class_test.m,v 1.7 2008/09/05 14:18:36 hewitson Exp $
%
%% Test constructor 1
fsd = fsdata()
%% Test constructor 2
fsd = fsdata(randn(1000,1))
%% Test constructor 3
fs = 1000;
f = linspace(0, fs/2, 1000);
xx = randn(1000,1);
fsd = fsdata(f,xx,fs)
%% Test constructor 4
fs = 1000;
x = randn(1,1000);
fsd = fsdata(xx,fs);
fsd = fsd.setXunits('Hz');
fsd = fsd.setYunits('V Hz^-0.5');
fsd