view m-toolbox/test/test_ao_default_plists.m @ 10:75007001cbfe database-connection-manager

Check for binary only objects
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Mon, 05 Dec 2011 16:20:06 +0100
parents f0afece42f48
children
line wrap: on
line source

clear all;

sets = ao(ao, 'Params')

%% From XML file

save(ao(1), 'a1.xml');

set = 'From XML File';  
pl = ao(ao, 'Params', char(set));
a1 = ao(plist('filename', 'a1.xml'), pl)

%% From MAT file

save(ao(1), 'a1.mat');

set = 'From MAT File';  
pl = ao(ao, 'Params', char(set));
a1 = ao(plist('filename', 'a1.mat'), pl)

%% From ASCII file

x = 1:10;
y = 1:10;
out = [x;y/10].';
save 'data.txt' out -ASCII -DOUBLE -TABS

set = 'From ASCII File';  
pl = ao(ao, 'Params', char(set));
a1 = ao(plist('filename', 'data.txt'), pl)

%% From Function

set = 'From Function';  
pl = ao(ao, 'Params', char(set));
a1 = ao(pl)


%% From Values

set = 'From Values';  
pl = ao(ao, 'Params', char(set));
a1 = ao(pl)

%% From Time-series Function

set = 'From Time-series Function';  
pl = ao(ao, 'Params', char(set));
a1 = ao(pl)

%% From Frequency-series Function

set = 'From Frequency-series Function';  
pl = ao(ao, 'Params', char(set));
a1 = ao(pl)

%% From Window

set = 'From Window';  
pl = ao(ao, 'Params', char(set));
a1 = ao(pl)

%% From Waveform

set = 'From Waveform';  
pl = ao(ao, 'Params', char(set));
a1 = ao(pl)

%% From Polynomial

set = 'From Polynomial';  
pl = ao(ao, 'Params', char(set));
a1 = ao(pl)

%% From Repository 

% set = 'From Repository';  
% pl = ao(ao, 'Params', char(set));
% a1 = ao(pl)

%% From Plist

set = 'From Plist';  
pl = ao(ao, 'Params', char(set));
a1 = ao(pl)