Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: A correction to mltimerpackage.m, as recommended by code analysis warnings
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
kzelechowski@e3tech.local

Posts: 27
Registered: 4/30/13
A correction to mltimerpackage.m, as recommended by code analysis warnings
Posted: Oct 31, 2013 11:11 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply
att1.html (20.2 K)

[17 unmodified lines hidden]
18 return; . return; 18
19 elseif strcmpi(option, 'Add') . elseif strcmpi(option, 'Add') 19
20 orig = varargin{1}; . orig = varargin{1}; 20

21 len = length(orig); x List = ... 21
22 for i = 1:len x [ 22
23 if isa(orig(i),'javahandle.com.mathworks.timer.TimerTask') x List, ... 23
24 List(end+1) = orig(i); x orig... 24
25 end x (arrayfun... 25
26 end x (@ (p) isa (p, 'javahandle.com.mathworks.timer.TimerTask'), orig)) 26
- > ]; 27

27 return; . return; 28
28 elseif strcmpi(option, 'Delete') . elseif strcmpi(option, 'Delete') 29
29 orig = varargin{1}; . orig = varargin{1}; 30

30 len = length(orig); x indices = List == orig; 31
31 indices = find(List == orig); < -

32 List(indices) = []; . List(indices) = []; 32
33 elseif strcmpi(option, 'Count') . elseif strcmpi(option, 'Count') 33
34 output = length(List); . output = length(List); 34
[4 unmodified lines hidden]



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.