Rank: 2159 based on 54 downloads (last 30 days) and 4 files submitted
photo

Volkmar Glauche

E-mail
Company/University
<a href="http://fbi.uniklinik-freiburg.de/">Freiburg Brain Imaging</a>

Personal Profile:

 

Watch this Author's files

 

Files Posted by Volkmar Glauche View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
01 Jul 2009 Clean up context of anonymous function handles - bug #328733 This submission provides a workaround for MATLAB bug #328733. Author: Volkmar Glauche bug, function, function handle, workaround 4 2
25 Jun 2009 Submit MATLAB functions to a cluster Run MATLAB functions on a gridengine/torque/PBS cluster Author: Volkmar Glauche distributed, cluster, gridengine, torque, pbs 11 3
24 Jun 2009 Use handle classes to model dependencies between computation steps Trigger computations in one object once computation results from other objects become available. Author: Volkmar Glauche demo, distributed, modeling, handle, objects, cluster 6 0
23 Jun 2009 Generate .m-file code for any MATLAB variable Generate .m script code for any MATLAB variable. If run, the code recreates the input variable. Author: Volkmar Glauche data export, gui, matrix, data exploration, data import, code 33 5
  • 4.75
4.8 | 4 ratings
Comments and Ratings by Volkmar Glauche View all
Updated File Comments Rating
08 Jul 2009 Clean up context of anonymous function handles - bug #328733 This submission provides a workaround for MATLAB bug #328733. Author: Volkmar Glauche

This should actually work in older releases, too. My focus was on the eval() solution because the idea came from http://www.mathworks.com/matlabcentral/fileexchange/24447, where I generate code for arbitrary variables. This code of course needs to be evaluated.

07 Jul 2009 Generate .m-file code for any MATLAB variable Generate .m script code for any MATLAB variable. If run, the code recreates the input variable. Author: Volkmar Glauche

I decided not to have this compact mode because lines may get really long. But I will think about it again.

26 Jun 2009 Clone Handle Object - using MATLAB OOP How to clone an object (deep copy) which inherits reference behaviour from the 'handle' class. Author: Bobby Nedelkovski

25 Jun 2009 Clone Handle Object - using MATLAB OOP How to clone an object (deep copy) which inherits reference behaviour from the 'handle' class. Author: Bobby Nedelkovski

This is the code I used for copyobj:
function new = copyobj(obj)
% This method acts as a copy constructor for all derived
% classes.
new = feval(class(obj)); % create new object of correct subclass.
mobj = metaclass(obj);
% Only copy properties which are
% * not dependent or dependent and have a SetMethod
% * not constant
% * not abstract
% * defined in this class or have public SetAccess - not
% sure whether this restriction is necessary
sel = find(cellfun(@(cProp)(~cProp.Constant && ...
~cProp.Abstract && ...
(~cProp.Dependent || ...
(cProp.Dependent && ...
~isempty(cProp.SetMethod))),mobj.Properties));
for k = sel(:)'
new.(mobj.Properties{k}.Name) = obj.(mobj.Properties{k}.Name);
end
end

25 Jun 2009 Clone Handle Object - using MATLAB OOP How to clone an object (deep copy) which inherits reference behaviour from the 'handle' class. Author: Bobby Nedelkovski

I also faced this problem, but for more complicated objects (using e.g. protected and dependent properties). It turned out that just looping over all properties did not do the trick. I had to check all kind of meta-properties to make sure the copyobj method didn't crash.

Comments and Ratings on Volkmar Glauche's Files View all
Updated File Comment by Comments Rating
27 May 2014 Generate .m-file code for any MATLAB variable Generate .m script code for any MATLAB variable. If run, the code recreates the input variable. Author: Volkmar Glauche Balazs

Great piece of code, works perfectly.

29 Aug 2011 Generate .m-file code for any MATLAB variable Generate .m script code for any MATLAB variable. If run, the code recreates the input variable. Author: Volkmar Glauche Cody

This saved me a lot of hassle and worked perfectly. Thanks!

08 Oct 2009 Submit MATLAB functions to a cluster Run MATLAB functions on a gridengine/torque/PBS cluster Author: Volkmar Glauche Jveer

thanks for the reply. unfortunately i havent managed to get this to work on xgrid. it would've been superb for processing simulations.

29 Sep 2009 Generate .m-file code for any MATLAB variable Generate .m script code for any MATLAB variable. If run, the code recreates the input variable. Author: Volkmar Glauche Chamane

helpfull
Mike from http://www.abcourses.fr

08 Jul 2009 Clean up context of anonymous function handles - bug #328733 This submission provides a workaround for MATLAB bug #328733. Author: Volkmar Glauche Volkmar Glauche

This should actually work in older releases, too. My focus was on the eval() solution because the idea came from http://www.mathworks.com/matlabcentral/fileexchange/24447, where I generate code for arbitrary variables. This code of course needs to be evaluated.

Contact us