Rank: 506 based on 248 downloads (last 30 days) and 14 files submitted
photo

Ben Mitch

E-mail

Personal Profile:

 

Watch this Author's files

 

Files Posted by Ben Mitch View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
15 May 2013 Screenshot Panel Like subplot, but easier, and WYSIWYG export to file. Also fixes dashed/dotted lines in export. Author: Ben Mitch specialized, plotting, panel, subplot, pane, multipane 132 136
  • 4.76471
4.8 | 39 ratings
05 Dec 2011 datastore A tool for persisting data associated with the logged in user across sessions of Matlab. Author: Ben Mitch utility, persistent, session, data, session data 4 0
20 Dec 2010 Screenshot matml Convert between matlab variables and MatML (XML) files Author: Ben Mitch data import, data export, xml matlab variable p..., xml convert, xml to matlab, matlab to xml 6 0
22 Nov 2010 priority Change the priority of the MATLAB Process programatically. Author: Ben Mitch development environme..., change, base, priority, process, utilities 18 14
  • 4.8
4.8 | 5 ratings
22 Nov 2010 textfile Provides a one-call interface to read/write flat text files or line-based text files. Author: Ben Mitch file, text file, read, write 10 2
Comments and Ratings by Ben Mitch View all
Updated File Comments Rating
22 Oct 2014 priority Change the priority of the MATLAB Process programatically. Author: Ben Mitch

Hi Aleksander

I wouldn't bet any money on it, but it looks like you might be compiling priority.cpp (which is C++) using a C compiler. I'd look at your mex setup options file and see if you can figure out why that's happening.

Cheers

16 Oct 2014 Panel Like subplot, but easier, and WYSIWYG export to file. Also fixes dashed/dotted lines in export. Author: Ben Mitch

Hi Max - margins are respected between panels within their parent and between the root panel and the edges of the canvas (figure or image file) - see doc panel/margin.

Hence, if you set a zero margin for "p", you'll see your child axes butt right up against the figure edge. Their own margins are not respected versus the figure edge.

Cheers

03 Oct 2014 Panel Like subplot, but easier, and WYSIWYG export to file. Also fixes dashed/dotted lines in export. Author: Ben Mitch

Hi Andrea

Sounds like you may be being tripped up by the fact that "colormap" is a property of a figure, not an axis. This is not related to panel.

I can't grok the code you posted, but the way out of this problem is usually to use RGB images rather than indexed images. If you plot "image(rand(30,30,3))" you will notice that the resulting image does not change if you change the colormap.

Cheers

02 May 2014 Panel Like subplot, but easier, and WYSIWYG export to file. Also fixes dashed/dotted lines in export. Author: Ben Mitch

If a function does not return a handle, you can usually recover it by walking the figure tree - start with get(gcf, 'children'), and work from there. Not elegant, but...

01 May 2014 Panel Like subplot, but easier, and WYSIWYG export to file. Also fixes dashed/dotted lines in export. Author: Ben Mitch

Oh, and brilliant. I've come a cropper by this website's daft bug of eating your 1st post if you post twice. Again. I wish they'd fix that.

I'll not post it all again, the essence of it was:

1) I could imagine adding a flag to panel so that it would respect the existing layout of some set of select()ed objects, and reflect it when it does layout. However, I'd implement it by creating child panels with absolute positioning, so...

2) Why is what you are wanting to do difficult to do using absolute positioning, applied manually, thus?

% axis handles from toolbox X
h1 = ...; h2 = ...;

% pack into a panel
p.pack({[0 0 1 0.45], [0 0.55 1 0.45]};
p(1).select(h1);
p(2).select(h2);

Cheers

Comments and Ratings on Ben Mitch's Files View all
Updated File Comment by Comments Rating
09 Dec 2014 rgb.m Convert colour names (blue,teal,pale green) into RGB triplets. Author: Ben Mitch Mark Knecht

Works nicely. Thanks!

05 Nov 2014 rgb.m Convert colour names (blue,teal,pale green) into RGB triplets. Author: Ben Mitch Paul Quelet

Excellent function! Works wonderfully!

22 Oct 2014 priority Change the priority of the MATLAB Process programatically. Author: Ben Mitch Ben Mitch

Hi Aleksander

I wouldn't bet any money on it, but it looks like you might be compiling priority.cpp (which is C++) using a C compiler. I'd look at your mex setup options file and see if you can figure out why that's happening.

Cheers

22 Oct 2014 priority Change the priority of the MATLAB Process programatically. Author: Ben Mitch Aleksander

Hi. i wanted to test this, however priority compile fails.

priority('compile')
Error priority.cpp: 59 illegal statement termination
Error priority.cpp: 59 skipping `char'
Error priority.cpp: 59 undeclared identifier `buf'
Error priority.cpp: 59 type error: pointer expected
Warning priority.cpp: 59 Statement has no effect
Error priority.cpp: 60 type error in argument 1 to `sprintf'; found `int' expected `pointer to char'
Error priority.cpp: 61 type error in argument 1 to `sprintf'; found `int' expected `pointer to char'
Error priority.cpp: 62 type error in argument 1 to `sprintf'; found `int' expected `pointer to char'
Error priority.cpp: 63 type error in argument 1 to `sprintf'; found `int' expected `pointer to char'
Error priority.cpp: 64 type error in argument 1 to `sprintf'; found `int' expected `pointer to char'
Error priority.cpp: 65 type error in argument 1 to `mxCreateString'; found `int' expected `pointer to const char'
Warning priority.cpp: 59 possible usage of buf before definition
Error priority.cpp: 76 illegal statement termination
Error priority.cpp: 76 skipping `int'
Error priority.cpp: 76 undeclared identifier `buflen'
Error priority.cpp: 77 illegal statement termination
Error priority.cpp: 77 skipping `char'
Error priority.cpp: 77 undeclared identifier `buf'
Error priority.cpp: 77 type error: pointer expected
Error priority.cpp: 77 operands of = have illegal types `int' and `pointer to char'
Error priority.cpp: 78 illegal statement termination
Error priority.cpp: 78 skipping `int'
Error priority.cpp: 78 too many errors

16 Oct 2014 Panel Like subplot, but easier, and WYSIWYG export to file. Also fixes dashed/dotted lines in export. Author: Ben Mitch Ben Mitch

Hi Max - margins are respected between panels within their parent and between the root panel and the edges of the canvas (figure or image file) - see doc panel/margin.

Hence, if you set a zero margin for "p", you'll see your child axes butt right up against the figure edge. Their own margins are not respected versus the figure edge.

Cheers

Contact us