Mercurial > hg > emotion-detection-top-level
comparison Code/Descriptors/yin/private/src/sf_cleanup.m @ 0:ea0c737c6323
first commit
author | Dawn Black <dawn.black@eecs.qmul.ac.uk> |
---|---|
date | Thu, 26 Jul 2012 14:46:25 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:ea0c737c6323 |
---|---|
1 function i = sf_cleanup(i) | |
2 % i=sf_cleanup(i) - cleanup after use (close i.fd if open) | |
3 | |
4 % Alain de Cheveigné, CNRS/Ircam, 2002. | |
5 % Copyright (c) 2002 Centre National de la Recherche Scientifique. | |
6 % | |
7 % Permission to use, copy, modify, and distribute this software without | |
8 % fee is hereby granted FOR RESEARCH PURPOSES only, provided that this | |
9 % copyright notice appears in all copies and in all supporting | |
10 % documentation, and that the software is not redistributed for any | |
11 % fee (except for a nominal shipping charge). | |
12 % | |
13 % For any other uses of this software, in original or modified form, | |
14 % including but not limited to consulting, production or distribution | |
15 % in whole or in part, specific prior permission must be obtained from CNRS. | |
16 % Algorithms implemented by this software may be claimed by patents owned | |
17 % by CNRS, France Telecom, Ircam or others. | |
18 % | |
19 % The CNRS makes no representations about the suitability of this | |
20 % software for any purpose. It is provided "as is" without express | |
21 % or implied warranty. Beware of the bugs. | |
22 | |
23 if ~nargin ; error('sf_info: no input arguement'); end | |
24 if ~isa(i, 'struct') error('sf_info: expected struct'); end | |
25 | |
26 % close file if open | |
27 if isfield(i, 'fd') & fopen(i.fd) | |
28 fclose(i.fd); | |
29 end |