Rank: 1542 based on 104 downloads (last 30 days) and 6 files submitted
photo

Dan K

E-mail
Lat/Long
37.229, -80.414

Personal Profile:

 

Watch this Author's files

 

Files Posted by Dan K View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
13 Jun 2014 findInPath.m Tests paths (or any other string) to find if it contains a substring Author: Dan K find, regexp, string 9 0
16 Feb 2012 Iseven/Isodd Simple helper files that return true/false based on whether inputs are even or odd, respectively Author: Dan K helper function, boolean 20 1
  • 3.0
3.0 | 1 rating
13 Jan 2012 AssignBase Copies all variables into the base workspace for debugging Author: Dan K programming, desktop environmnent 14 0
06 Jan 2012 Link All Axes in Figure This is just a simple utility function to find all subplots in a figure and link their axes. Author: Dan K plotting, linkaxes 19 0
  • 2.0
2.0 | 1 rating
09 Nov 2011 Screenshot InsertHeader Inserts a user defined header in the m file currently open in editor Author: Dan K development environme..., text header editor rc..., header, h1 line, function 14 4
  • 5.0
5.0 | 3 ratings
Comments and Ratings by Dan K View all
Updated File Comments Rating
30 Oct 2014 subplot_grid A subplot figure with a lot of fancy features Author: Joris Kampman

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

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

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

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

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

Comments and Ratings on Dan K's Files View all
Updated File Comment by Comments Rating
11 Sep 2014 Link All Axes in Figure This is just a simple utility function to find all subplots in a figure and link their axes. Author: Dan K pietro

02 May 2013 Running Extrema Returns the running minimum or maximum of a vector or matrix (analagous to the running average) Author: Dan K Bas-Jan

12 Oct 2012 InsertHeader Inserts a user defined header in the m file currently open in editor Author: Dan K K E

Dan - Works great even in R2012b! Thanks for the update.

08 May 2012 Running Extrema Returns the running minimum or maximum of a vector or matrix (analagous to the running average) Author: Dan K Peter O'Connor

where have you been all my life?

16 Feb 2012 Iseven/Isodd Simple helper files that return true/false based on whether inputs are even or odd, respectively Author: Dan K Jan Simon

There are some functions in the FEX already, which determine if a number is odd or even, see: http://www.mathworks.com/matlabcentral/fileexchange/?term=isodd
Some of them consider NaN, +/-Inf, integer types and numbers which cannot be represented exactly as 2^54-1 or 2^54.
There have been a lot of discussions already and I do not want to start another one. I do not think, that this submission adds anything new to the FEX. There is a documentation, the functions work as expected inside the *not* specified limitations. The error message in "isodd" claims, that it is the function "iseven".

Contact us