Rank: 1034 based on 117 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 workaround, function handle, function, bug 18 2
25 Jun 2009 Published M-Files Submit MATLAB functions to a cluster Run MATLAB functions on a gridengine/torque/PBS cluster Author: Volkmar Glauche distributed, gridengine, pbs, cluster, torque 31 3
24 Jun 2009 Published M-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 modeling, handle, distributed, demo, objects, cluster 22 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 matrix, data import, data export, gui, automated program cre..., code 46 3
  • 4.5
4.5 | 2 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
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.

03 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 Schreiber, Gabriel Akira

This is exactly what I was looking for, thank you very much.

One suggestion remains though:
1: A 'compact' mode without unnecessary spaces to conserve space

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 workaround, function handle, function, bug 18 2
25 Jun 2009 Published M-Files Submit MATLAB functions to a cluster Run MATLAB functions on a gridengine/torque/PBS cluster Author: Volkmar Glauche distributed, gridengine, pbs, cluster, torque 31 3
24 Jun 2009 Published M-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 modeling, handle, distributed, demo, objects, cluster 22 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 matrix, data import, data export, gui, automated program cre..., code 46 3
  • 4.5
4.5 | 2 ratings
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com