Rank: 2358 based on 21 downloads (last 30 days) and 4 files submitted
photo

Volkmar Glauche

E-mail
Company/University
Freiburg Brain Imaging

Personal Profile:
Professional Interests:
image processing, statistics, medical image analysis

 

Watch this Author's files

 

Files Posted by Volkmar 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 1 2
25 Jun 2009 Published MATLAB Files Submit MATLAB functions to a cluster Run MATLAB functions on a gridengine/torque/PBS cluster Author: Volkmar Glauche pbs, gridengine, cluster, torque, distributed 2 3
24 Jun 2009 Published MATLAB Files 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 3 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 15 4
  • 4.66667
4.7 | 3 ratings
Comments and Ratings by Volkmar 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's Files View all
Updated File Comment by Comments Rating
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 Glauche, Volkmar

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 Glauche, Volkmar

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

Top Tags Applied by Volkmar
cluster, distributed, automated program creation, automation, batch
Files Tagged by Volkmar 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 1 2
25 Jun 2009 Published MATLAB Files Submit MATLAB functions to a cluster Run MATLAB functions on a gridengine/torque/PBS cluster Author: Volkmar Glauche pbs, gridengine, cluster, torque, distributed 2 3
24 Jun 2009 Published MATLAB Files 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 3 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 15 4
  • 4.66667
4.7 | 3 ratings

Contact us at files@mathworks.com