Search Comments and Ratings

go

   
Date File Comment by Comment Rating
30 Oct 2014 subplot_grid A subplot figure with a lot of fancy features Author: Joris Kampman Dan K

Joris,
I'm sorry if I seem to be harping, but it looks like the set_padding method is not operational either. I don't find any reference to the loose_inset property in the reposition_content function. Is this something that you've worked on?

Thanks,
Dan

20 Oct 2014 subplot_grid A subplot figure with a lot of fancy features Author: Joris Kampman Dan K

Joris,
For my first item below, it can be eliminated by changing the code in the set_zoom_button_position as follows:

if verLessThan('matlab','8.4')
%DWK: Inlining the layering command provides modest speed improvement
% uistack(this.subplotzoom_data(ir,ic).zm_btn,'top');
parentObj = get(this.subplotzoom_data(ir,ic).zm_btn,'Parent');
allDescendents = get(parentObj,'Children');
% Only changing the layering if necessary makes a big difference
zmBtnIndex = find(allDescendents == this.subplotzoom_data(ir,ic).zm_btn,1);
thisAXIndex = find(allDescendents == this.hax(ir,ic),1);
if zmBtnIndex < thisAXIndex,
newOrder = [allDescendents(allDescendents~=this.subplotzoom_data(ir,ic).zm_btn);this.subplotzoom_data(ir,ic).zm_btn];
set(parentObj,'Children',newOrder);
end
end

On the other hand, I've found a new issue. The use of the colorbar method doesn't seem to be working. Every time I try to use it I get the following error:

Error using colorbar (line 55)
Attempt to reference field of non-structure array.
Error in subplot_grid/colorbar (line 2181)
hcb = colorbar('peer',this.hax(ir,ic),location);

Thanks,
Dan

17 Oct 2014 subplot_grid A subplot figure with a lot of fancy features Author: Joris Kampman Dan K

Joris,
Just wanting to touch base here, in that I think it could use a bit of work to be more R2014b compatible. The issues that I'm seeing are:

1. A lot of warnings...
Warning: Illegal permutation. No effect on view
> In subplot_grid>subplot_grid.set_zoom_button_position at 2780
In subplot_grid>subplot_grid.reposition_content at 2620
In subplot_grid>subplot_grid.subplot_grid at 680

2. The appearance of a background axis object behind the grid.

Unfortunately I don't have the time to try tracking it down now, but I thought I would mention it.

As always, many thanks.
Dan

06 Oct 2014 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff Dan K

Hi there,
Just wondering, now that R2014b is live, when we can expect the update to the toolbox? Any projected ETA?

Thanks,
Dan

11 Aug 2014 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff Dan K

William,
If, like me, you use the command line to do your compilations, see the hint that Andreas gave me on 30 May 2014 for how to include it in the command line.
Dan

22 Jul 2014 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff Dan K

William, This suggestion isn't specific to the GLT, but if you open a command window and launch the executable from there you will be able to see what error is being thrown that takes down the program.

20 Jun 2014 profile_history - display graphical profiling timeline data Display profiling data as an interactive timeline graph Author: Yair Altman Dan K

Yair,
One thing that I would like to see is a way to trim the depth of profile that is displayed. What I am finding is that if I try to use profile history on any function that includes a moderately complex GUI it gets pretty bogged down in the number of modules its displays. Otherwise, great work.

19 Jun 2014 profile_history - display graphical profiling timeline data Display profiling data as an interactive timeline graph Author: Yair Altman Dan K

30 May 2014 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff Dan K

I don't know if this is true of anybody else, but with the current version 1.14, I can't compile a GUI that uses a tabpanel. It fails because it can't find the png's in the Resources directory, and because it's a package I can't use -I to include that directory. Any suggestions?

27 Feb 2014 uipickfiles: uigetfile on steroids Many-featured, platform independent file and directory picker. Author: Douglas Schwarz Dan K

This is a fabulous tool. One "feature request" I would love to see is a favorites list. The recent list is great, but since it tracks every folder visited, it can fill up fast with the intermediate folders needed to navigate to your new destination. Given that I frequently need to shift between widely separated directories on network shares and local drives, having a favorites that I could just use to hop to at least the approximate location would be great!

Thanks.

03 Oct 2013 FindJObj - find java handles of Matlab graphic objects Find java objects contained within a specified java container or Matlab GUI handle Author: Yair Altman Dan K

Yair,
Thanks for the feedback.... Would it work if I were to undock the figure, find the object, and then re-dock? Or would the act of re-docking the figure change the handles?

02 Oct 2013 FindJObj - find java handles of Matlab graphic objects Find java objects contained within a specified java container or Matlab GUI handle Author: Yair Altman Dan K

Yair,
Thank you for the great utility. One item I noticed. It doesn't work with figures that are docked. If I use:

hButton = uicontrol('string','click me');
jButton = findjobj(hButton,'nomenu');

On an undocked figure, it finds the handle, but if I dock the figure, it returns an empty matrix. Thoughts?

21 Feb 2013 multiWaitbar( label, varargin ) A new "shiny" progress-bar with multiple bars in a single window, time-estimates and more. Author: Ben Tordoff Dan K

Very nice, albeit with one bug. If one has defaultWindowStyle set to docked, you get some very interesting effects... I would suggest adding:

'WindowStyle','normal',...

At line 293

21 Feb 2013 Comprehensive Polar Plots Polar plots with handle graphics type parameter setting. Includes log radius support. Author: Duane Hanselman Dan K

Duane,

Thank you for bringing this back to FEX... I've been using an old version of mmpolar, literally for years, and have found it tremendously useful.. I personally have found the built in polar function to be an impractical joke. Again, Thanks.

20 Feb 2013 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff Dan K

Fabulous tool. There's one piece of functionality that I haven't figured out yet: How can one add items into a parent (such as a Grid) in an order that isn't just stepping down the columns? Is the only way to do it by adding empties? Likewise, how can I replace an entry in a grid/buttonbox/tabpanel once the other items have been added?

Thanks,
Dan

14 Feb 2013 subplot_grid A subplot figure with a lot of fancy features Author: Joris Kampman Dan K

Joris,

Here's a thought for you: Have you considered setting it up so that the grid can live inside some other parent besides its own figure? I'm setting up a GUI, and I'd like to consider putting a grid inside a uipanel.... Thoughts?

21 Jan 2013 UIINSPECT - display methods, properties & callbacks of an object Inspect an object handle (Java/COM/HG); display its methods/properties/callbacks in a unified window Author: Yair Altman Dan K

Yair,
I love your work, but the most recent version of this is crashing out on me:

uiinspect(0)
uiinspect: Dot name reference on non-scalar structure.
Error in uiinspect>getCbsPane (line 1080)
hModel = handle(callbacksTable.getModel, 'CallbackProperties');
Error in uiinspect>displayObj (line 323)
[callbacksPanel, cbTable] = getCbsPane(objCallbacks, false);
Error in uiinspect (line 128)
fig = displayObj(obj, objMethods, objProps, objCallbacks, objChildren, inputname(1), fig);

Many thanks for your submissions, regardless.

Dan

15 Jun 2012 Violin Plots for plotting multiple distributions (distributionPlot.m) Function for plotting multiple histograms side-by-side in 2D - better than boxplot. Author: Jonas Dan K

This is a great tool... It would be nice if some of the functionality could be achieved without requiring toolboxes (e.g. I've cobbled together the code to do the smoothed histograms without the spline toolbox, using files from FEX).

25 May 2012 subplot_grid A subplot figure with a lot of fancy features Author: Joris Kampman Dan K

Sorry about that last. Hit return by mistake. Joris, I've run into an issue using subplot_grid, which may be fairly unique, but I thought I would mention it. In order to save figures and be able to change them later, I'm using setappdata to copy the subplot_grid object into the figure's appdata. However, this has an interesting consequence: After I've cleared the figure, the object which is saved in the application data is still listening for callbacks, such as resize, and throwing an error:

Cell contents reference from a non-cell array object.
Error in cell2mat (line 43)
cellclass = class(c{1});
Error in subplot_grid/reset_handles (line 3279)
positions = cell2mat(get(haxs(:),'OuterPosition'));
Error in subplot_grid/subplot_resize_fcn (line 2153)
this.reset_handles;
Error in subplot_grid>@(src,evt)this.subplot_resize_fcn (line 429)
set(this.hfig,'ResizeFcn',@(src,evt)this.subplot_resize_fcn);

I'm looking for a place where I can test to check if the object is still referring to a valid grid, and abort. An alternative would be to find a way to clear out the appdata on a clf. If you have any suggestions, I'd appreciate it.

Thanks,
Dan

16 Apr 2012 subplot_grid A subplot figure with a lot of fancy features Author: Joris Kampman Dan K

Joris,
Again, I applaud your good work. This has rapidly become one of my favorite FEX functions.
Another items to think about adding when you get around to it:
I would find it useful to be able to create a shared xlabel (much like the coltitle method) only at the bottom of the figure.

01 Mar 2012 subplot_grid A subplot figure with a lot of fancy features Author: Joris Kampman Dan K

Joris,
I've come across another item that could use a little work. If you clear a figure that used to have a grid, it fails anytime on account of the resize function (see below). I think this could be resolved with an appropriate destructor method.

Again, thank you for your great work.
Dan

Error using handle.handle/get
Invalid or deleted object.

Error in subplot_grid/resize_wo_legend (line 3129)
units = get(this.hax(ir,ic),'Units');

Error in subplot_grid/subplot_resize_fcn (line 1986)
this.resize_wo_legend;

Error in subplot_grid>@(varargin)this.subplot_resize_fcn(varargin{:}) (line 399)
set(this.hfig,'ResizeFcn',@this.subplot_resize_fcn);

Error using drawnow
Error while evaluating figure ResizeFcn

14 Feb 2012 subplot_grid A subplot figure with a lot of fancy features Author: Joris Kampman Dan K

Very nice work... A couple of (maybe) suggestions. (Maybe, because they might already be implemented, and I just didn't find them). Create an output for the set_gca method which is the handle of the axes you just selected (useful for titles,TickValues, etc.) Also, allow some control over the amount of whitespace between axes. It also really seems to dislike plotyy. But all told, it's one of the better subplot functions I've seen.

10 Nov 2011 InsertHeader Inserts a user defined header in the m file currently open in editor Author: Dan K Dan K

KE,
I've updated the code to work again with R2011b. Let me know if there are any issues.
Dan

02 Nov 2011 LOOK4 LOOKFOR substitute that uses a database for quick searching of MATLABĀ® files. Author: Jiro Doke Dan K

A few recommendations:
On line 654: disable 'resize','off' if you use dual monitors (and might want to use look4 on your second monitor). Also, if you default to docked figures, include 'WindowStyle','docked'

As a bug note: in R2011b, if I hit the clear button in the GUI, then look4 becomes completely unresponsive, and I must close it and start over.

20 Jul 2011 export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford Dan K

Oliver,
Thanks for the response... Following your suggestion, I found IMCLIPBOARD (http://www.mathworks.com/matlabcentral/fileexchange/28708-imclipboard) which does just that. Now if I can just find one that outputs to clipboard in vector format.
Dan

19 Jul 2011 export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford Dan K

Hi Oliver,
Very nice. One question: I am also fighting with the whitespace outside of copied images. Your cropping seems to do the job nicely. Is there a way to use export_fig to export to the clipboard?
Thanks,
Dan

22 Mar 2011 Optical_bench Optical_bench - a simple ray-tracing tool for optical systems. Author: Bjorn Gustavsson Dan K

06 Nov 2008 Code Metrics Generate code metrics for the specified directory Author: Santosh Kasula Dan K

I have used this utility for quite a long time and really found it to be wonderfully useful. Unfortunately, it no longer works with the updated FEX format. I would be very grateful if it could be updated to work with the new FEX. One other functionality piece which would be very nice would be to have a summary of downloads page, which allowed one to easily see which of the fxdownloads are on the path, which are not, and to toggle the state of any given one. Thanks,
Dan

Contact us