Rank: 2535 based on 18 downloads (last 30 days) and 1 file submitted
photo

Joseph Burgel

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Joseph
Updated   File Tags Downloads
(last 30 days)
Comments Rating
28 May 2009 getfilenames.m Do a recursive search for files. Author: Joseph Burgel path, directories, files, dir, folder, filenames 18 10
  • 4.71429
4.7 | 7 ratings
Comments and Ratings by Joseph View all
Updated File Comments Rating
19 Oct 2011 CreateGuid MEX MEX to create a Globally Unique Identifier GUID Author: Stephen Lienhard

Had some issues compiling this in Windows 7 an ML 2010a. After a little digging, I found:
x = java.util.UUID.randomUUID()
which worked fine for my purpose. Thanks.

07 Oct 2011 MATLAB xUnit Test Framework MATLAB xUnit is a unit test framework for MATLAB code. Author: Steve Eddins

Nice Tool. One question an maybe my philosophy is just wrong (new to TDD) but is there any way to have the code break on error if the code in a given test errors? (i.e. dbstop if error) Thanks,

13 Jul 2011 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

Ben,

Regarding July 1 post, I created a public property called "Locked" and wrapped the tab callback in TabPanel:

function iTabClicked( src, evt, obj, idx ) %#ok<INUSL>

if ~obj.Locked
    % Call the user callback before selecting the tab
    evt = struct( ...
        'Source', obj, ...
        'PreviousChild', obj.SelectedChild, ...
        'SelectedChild', idx );
    uiextras.callCallback( obj.Callback, obj, evt );
    obj.SelectedChild = idx;
end

end % iTabClicked

Setting Locked to true will allow the user to do things on the active tab but will not allow the tab to change. I tried to subclass TabPanel and overload 'onChildAdded' and 'iTabClicked' to do this but couldn't get this to work because of these private properties:

  properties( SetAccess = private, GetAccess = private, Hidden = true )
        Images_ = struct()
        TabImage_ = []
        PageLabels = []
    end % private propertie

Next rev, can you add the Locked feature or set these properties to 'protected'

Great package. Thanks.
    

01 Jul 2011 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

Hi Ben,

I've got a tab panel where I'd like to implement a 'edit' mode on one of the tabs. The user should NOT be able to change the active tab until she comes out of 'edit' mode. So, during 'edit mode' the tab control should be disabled. The problem is, Enable property on the tab disables the tab kids as well so the user cannot do anything to child controls of the tab while in 'edit' mode. I'm not allowed to subsequently change Enable on kids either. I see in your code where to change this. Should I just subclass the TabPanel and implement what I describe. Your comments? Suggestions?

22 Jun 2011 Straightforward COPY and PASTE functions Allows very simple manual exchange with other applications through the clipboard. Author: Yvan Lengwiler

Hi Yvan. Nice ftns. One thing I changed was to add special conditions for when a cell array has an 'empty' element. Rather that copying '[]', I test for empty and then simply add the tabs/CR. This way, Excel doesn't print anything for empties. Not sure if this will screw anything else up... In copy.m, line 51:

    % *** cell argument **************************************************
    elseif isa(x,'cell')
        [nrow, ncol] = size(x);
        str = '';
        for r = 1:nrow
            for c = 1:ncol-1
                if isempty(x{r,c}),
                    str = [str char(9)];
                else
                    str = onecell(str, x{r,c}, char(9)); % treat cell, append a tab
                end
            end
            if isempty(x{r,end}),
                str = [str char(10)];
            else
                str = onecell(str, x{r,end}, char(10));% treat cell, append a linefeed
            end
            clipboard('copy',str); % copy to clipboard
        end
Thanks,

Comments and Ratings on Joseph's Files View all
Updated File Comment by Comments Rating
21 Dec 2010 getfilenames.m Do a recursive search for files. Author: Joseph Burgel Kanderian, Sami

To make this code work for Matlab 2010b as well as other versions for both PC and Mac replace the lines 30 to 34:

if ispc
    wildcard='*.*';
elseif ismac
    wildcard='';
end

with:

wildcard='';

Now it will work with version 2010b

08 Sep 2010 getfilenames.m Do a recursive search for files. Author: Joseph Burgel E, K

No longer works recursively on R2010b, even thought it does on R2010a. I am not sure why.

06 Jul 2010 getfilenames.m Do a recursive search for files. Author: Joseph Burgel E, K

Useful. Wish Matlab had more builtins for file searching and management, since I write mfiles that have to be used by Windows users (no perl)

10 Jun 2010 getfilenames.m Do a recursive search for files. Author: Joseph Burgel Kumar , Nitin

Works great... fast as well

25 Jun 2009 getfilenames.m Do a recursive search for files. Author: Joseph Burgel Marco

Does not work for linux, because it uses the function "ismac" instead of isunix.
Additionally, I do not see why the wildcard should be set to an empty string on a mac, a '*' would make more sense, right?

Why not use the Matlab-original function 'what'? At least for Matlab-related files, it gives you exactly what you want to do with getfilenames.

Top Tags Applied by Joseph
dir, directories, filenames, files, folder
Files Tagged by Joseph View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
28 May 2009 getfilenames.m Do a recursive search for files. Author: Joseph Burgel path, directories, files, dir, folder, filenames 18 10
  • 4.71429
4.7 | 7 ratings
23 Mar 2007 Screenshot Java-based data table Spreadsheet display/editing/sorting of data with multiple features Author: Yair Altman uitable, example, java, gui tools, table, excel 54 42
  • 4.6
4.6 | 17 ratings

Contact us at files@mathworks.com