Line | |
---|
1 | %ISPE_DATASET Test whether the argument is a pseudo-Euclidean dataset |
---|
2 | % |
---|
3 | % N = ISPE_DATASET(A); |
---|
4 | % |
---|
5 | % INPUT |
---|
6 | % A Input argument |
---|
7 | % |
---|
8 | % OUTPUT |
---|
9 | % N 1/0 if A is/isn't a PE dataset |
---|
10 | % |
---|
11 | % DESCRIPTION |
---|
12 | % The function ISPE_DATASET test if A is a dataset object containing the |
---|
13 | % signature of the PE space in the user field. This is set by a PE mapping |
---|
14 | % found by PSEM. |
---|
15 | % |
---|
16 | % SEE ALSO |
---|
17 | % ISDATASET, PSEM |
---|
18 | |
---|
19 | % R.P.W. Duin, r.p.w.duin@prtools.org |
---|
20 | % Faculty EWI, Delft University of Technology |
---|
21 | % P.O. Box 5031, 2600 GA Delft, The Netherlands |
---|
22 | |
---|
23 | function n = ispe_dataset(a) |
---|
24 | |
---|
25 | if isdataset(a) |
---|
26 | sig = getuser(a,'pe_signature'); |
---|
27 | n = ~isempty(sig); |
---|
28 | else |
---|
29 | n = 0; |
---|
30 | end |
---|
31 | if (nargout == 0) & (n == 0) |
---|
32 | error([newline 'PE dataset expected.']) |
---|
33 | end |
---|
34 | |
---|
35 | return; |
---|
Note: See
TracBrowser
for help on using the repository browser.