comparison m-toolbox/sltpda/isValidBlock.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f0afece42f48
1 function res = isValidBlock(block)
2
3 % ISVALIDBLOCK checks a block is in the valid block list.
4 %
5 % usage: res = isValidBlock(block)
6 %
7 % M Hewitson 29-03-07
8 %
9 % $Id: isValidBlock.m,v 1.1 2007/03/30 08:24:36 hewitson Exp $
10 %
11
12 res = 0;
13 block_list = sltpda_valid_block_list();
14
15 disp(sprintf(' + checking %s against list', block));
16 for b = block_list
17 if strcmp(b, block)
18 res = 1;
19 end
20 end
21
22 if res == 0
23 disp(sprintf('### function name %s not in list of valid functions.', block));
24 end
25