Rank: 8352 based on 5 downloads (last 30 days) and 1 file submitted
photo

Eric Cousineau

E-mail
Company/University
Texas A&M University

Personal Profile:

 

Watch this Author's files

 

Files Posted by Eric Cousineau
Updated   File Tags Downloads
(last 30 days)
Comments Rating
20 Sep 2011 Option Specifications and Permutations A simple way to use structured option structures in functions and produce permutations. Author: Eric Cousineau option, management, permutation, experiment 5 0
Comments and Ratings by Eric Cousineau View all
Updated File Comments Rating
22 Dec 2012 String Toolkits A set of useful string manipulation functions that MATLAB does not offer Author: Dahua Lin

Here is an extension to strstartswith to handle cellstr arguments for 'pat':

nPat = length(pat);
if ~iscell(pat)
result = strncmp(s, pat, nPat);
else
result = false(1, nPat);
for i = 1:nPat
result(i) = strncmp(s, pat{i}, length(pat{i}));
end
end

17 May 2012 GridLayout An intuitive and flexible layout manager Author: Mihail Petrov

To make it easier to wrap child objects, such as nested GridLayout's and plots, I think a function such as GridLayout.WrapCell(Row, Col) would help. It would create a uicontainer() inside the cell, and then return a handle to that container.

08 Sep 2011 GridLayout An intuitive and flexible layout manager Author: Mihail Petrov

Sure thing! I commented a small portion in the constructor to allow ~ishghandle() objects to contain a GridLayout.
I also updated the UpdateLayout() method to allow for plots.
I have uploaded a diff file: http://pastebin.com/knn05prR

However, I think it would probably be easier if both plots and child GridLayouts were wrapped in uicontainers() - that way they can be contained by a GridLayout. I was thinking that this wrapping could happen at the first call to UpdateLayout().

15 Aug 2011 GridLayout An intuitive and flexible layout manager Author: Mihail Petrov

Just realized a couple of things:
1) You can nest GridLayout's by disabling the check (ishghandle()) in the constructor and wrap it in a uicontainer.
2) If you add legends for your plot, it will introduce additional children into the cell, causing errors. The best fix for this is to wrap it in a container. This is also another bugfix towards adding plots without the little workaround.

15 Aug 2011 GridLayout An intuitive and flexible layout manager Author: Mihail Petrov

This is an awesome redux of GridBagLayout!

I noticed that there was a bug when resizing plots. Found a bugfix in Jason's layout.GridBagLayout and incorporated it into GridLayout.ResizeCell().

I have uploaded the code to
http://pastebin.com/fqRhFCgC

Thank you again!

Contact us