Search Comments and Ratings

go

Comments and Ratings

   
Date File Comment by Comment Rating
16 Nov 2009 35 Complete GUI Examples 35 working GUIs to read and learn. Author: Matt Fig Altzheim, Damien

Awesome!! Just what I was looking for.

13 Nov 2009 35 Complete GUI Examples 35 working GUIs to read and learn. Author: Matt Fig Laughs, Rachel

Okay wow. I know I already posted feedback, but this set of examples is so amazing as a tutorial that I had to come back and say that every beginner should study this entire package. This has to be the best file I've found all year, hands down. Thank you for providing this!!

09 Nov 2009 35 Complete GUI Examples 35 working GUIs to read and learn. Author: Matt Fig Laughs, Rachel

What an amazing collection. Thank you so much for this!

Is there an available "answer guide" for the suggested exercises you have listed in the files? I am sadly already stuck on the second one and don't want to move on until I understand it

03 Nov 2009 35 Complete GUI Examples 35 working GUIs to read and learn. Author: Matt Fig Chaudhry, Ahsan

Awesome.... You made my day!!! I was struggling with gui... thanks a lot...

31 Oct 2009 COMBINATOR -combinations AND permutations Returns 1 of 4 different samplings on the set 1:N, taken K at a time. Author: Matt Fig Fig, Matt

Michele,
You didn't give very much information. If you put a number greater than 170 WHERE? And what other parameters? Why don't you just email me? I put my email in the help for that purpose. If you email me, show me EXACTLY what you did, don't be vague.

31 Oct 2009 COMBINATOR -combinations AND permutations Returns 1 of 4 different samplings on the set 1:N, taken K at a time. Author: Matt Fig Costola, Michele

If I put a value greater than 170 I get an error.

26 Oct 2009 35 Complete GUI Examples 35 working GUIs to read and learn. Author: Matt Fig Deshpande, Ashwini

In GUI_32, if i press the delete button(key), it does not delete the next character instead it will consider it as a character and adds to the existing string

26 Oct 2009 35 Complete GUI Examples 35 working GUIs to read and learn. Author: Matt Fig Lalith, Krishna

Excellent. Great Job.

23 Oct 2009 35 Complete GUI Examples 35 working GUIs to read and learn. Author: Matt Fig Deshpande, Ashwini

22 Oct 2009 35 Complete GUI Examples 35 working GUIs to read and learn. Author: Matt Fig Alain

20 Oct 2009 txthide A gui to easily hide a text message in a picture. Author: Matt Fig Tyagi, Yogesh

sir
i tried it. This is an excellent work By U.......
Can u explain me How the Encoder and decoder Works.....
i just wanna knw Which method u r using and hw???? my e-mail id is tyagi.yogesh@rediffmail.com

07 Oct 2009 N_PERMUTE_K All possible permutations of the elements of set N, taken K at a time, with repetition. Author: Matt Fig GERMÁN

HOW TO CALCULATE THIS FUNCTION?

MAT = npermutek(['a' 'b' 'c' '!' 'l' 't' 's' '0' '1' 'e' 'o' 'i' ],16)

29 Sep 2009 35 Complete GUI Examples 35 working GUIs to read and learn. Author: Matt Fig Herve

25 Sep 2009 N_PERMUTE_K All possible permutations of the elements of set N, taken K at a time, with repetition. Author: Matt Fig Mark

totally terrific, works as advertised and saves me a bunch of hassle.

11 Sep 2009 35 Complete GUI Examples 35 working GUIs to read and learn. Author: Matt Fig Fang, vivian

These are really helpful. Thank you very much!

07 Sep 2009 35 Complete GUI Examples 35 working GUIs to read and learn. Author: Matt Fig Fig, Matt

Cyberfrog,
GUI_34 has a custom menubar. None of the GUIs in this collection are programmed with GUIDE. Please email me if you have more questions.

07 Sep 2009 35 Complete GUI Examples 35 working GUIs to read and learn. Author: Matt Fig CyberFrog

Hi Matt,
Woops, I thought the uimenu function was for the menu bar only.
Is it fair to assume then that if a gui is programmed without guide and you wish to add a menu bar, the property menubar is the only way to do it? Sorry for the general question but I have just been lucky enough to take on this rather large code which I think was not written in guide to start with (but it still has a .fig file).

Do you happen to have an example with a customised menubar gui that is programmed without using guide?

Like yourself I am very much inclined to program GUI's rather than using GUIDE.

Many thanks

06 Sep 2009 35 Complete GUI Examples 35 working GUIs to read and learn. Author: Matt Fig Fig, Matt

Hello CyberFrog,
I am not sure what you mean by a "menu title" in GUI_25. There isn't supposed to be a menubar, if that is what you mean. I am using 2007b, and everything looks like it should here.

No *.fig file is generated because these are M-file GUIs. GUIDE works by generating two files, an M-File which has the code, and a figure file which has the graphics. These are simply two different ways of doing GUIs in MATLAB. I much prefer to write my GUIs without GUIDE for many reasons, only one of which is that I need to keep track of only one file!

This collection, as is stated in the description, is meant to help people write GUIs without using GUIDE.

06 Sep 2009 35 Complete GUI Examples 35 working GUIs to read and learn. Author: Matt Fig CyberFrog

Hi matt, great collection of gui examples, really useful!

I have 2007b and I tried running example 25 but no menu title appears, is this a compatibility problem?

One more question too being an absolute beginner here, how come no .fig file is generated when running the .m file code? i.e. in guide this is automatically generated?

Cheers

Cyberfrog

25 Aug 2009 COMBINATOR -combinations AND permutations Returns 1 of 4 different samplings on the set 1:N, taken K at a time. Author: Matt Fig Andrey

Very good.

13 Aug 2009 35 Complete GUI Examples 35 working GUIs to read and learn. Author: Matt Fig Fig, Matt

Tanguy,
You are correct. I didn't mention resizable GUIs because I make all of my own GUIs non-resizable. Is there something you have in mind in particular? If so email me with your suggestion, and I may include it in the next update. Thanks.

13 Aug 2009 35 Complete GUI Examples 35 working GUIs to read and learn. Author: Matt Fig Tanguy

Absolutely Superb !!

Thanks for such a didactic, well commented set of example. The exercises are a great idea too.

One thing you never touched though, is the resizing of the GUIs. Was that intentional ?

11 Aug 2009 35 Complete GUI Examples 35 working GUIs to read and learn. Author: Matt Fig Ahmed

11 Aug 2009 35 Complete GUI Examples 35 working GUIs to read and learn. Author: Matt Fig creek

thank you for understanding, and this is a great set and deserve a 5star for its completeness.

11 Aug 2009 35 Complete GUI Examples 35 working GUIs to read and learn. Author: Matt Fig Giaccari, Luigi

09 Aug 2009 35 Complete GUI Examples 35 working GUIs to read and learn. Author: Matt Fig Thabot, Arnaud

05 Aug 2009 35 Complete GUI Examples 35 working GUIs to read and learn. Author: Matt Fig Bhagat, Vishakha

30 Jul 2009 35 Complete GUI Examples 35 working GUIs to read and learn. Author: Matt Fig singh, manoj

awesome work really very helpful

29 Jul 2009 35 Complete GUI Examples 35 working GUIs to read and learn. Author: Matt Fig Rowland, Darren

A stellar FEX contribution. Must read material
for any GUI developer.

28 Jul 2009 Resonant Ultrasound Spectroscopy (RUS) Calculates resonant frequencies and mode shapes for RUS. Author: Matt Fig Miller, Lucas

Very nice RUS visualization program. I use it in conjunction with RUSpec codes from Migliori from my work and it works great.

28 Jul 2009 35 Complete GUI Examples 35 working GUIs to read and learn. Author: Matt Fig Fig, Matt

Thanks someone,
BUG! I should be using listboxtop, not value. Thanks, I will update that too.
Also, the suggestions for added exercises are coming into my email. Keep them coming! Any other GUI suggestions are welcome, simple or complex.

28 Jul 2009 35 Complete GUI Examples 35 working GUIs to read and learn. Author: Matt Fig someone

A VERY useful submision for all ages of programmers.

In GUI_12, I have to actually click on the the "color" to get the "print choice" button to work properly. Otherwise the last color "selected" is printed (not current displayed color).
Bug or feature?

A (very minor) typo in GUI_24 on line 23:
% No make a simple plot.
should be:
% Now make a simple plot.

This submission could easlily become the MATLAB GUI FAQ!
Great job Matt!!!

28 Jul 2009 35 Complete GUI Examples 35 working GUIs to read and learn. Author: Matt Fig Fig, Matt

I like the contents.m idea, and I might as well since a typo has already been found.

In the pdf I refer to a comment in GUI_30. I should have put GUI_32. File will be updated.

28 Jul 2009 35 Complete GUI Examples 35 working GUIs to read and learn. Author: Matt Fig us

this first class ML senior has offered an enormous amount of time to create this exhaustive suite of working and highly educational GUI examples to our community...
both novices, in particular, as well as more advanced users will find a lot of good stuff in those exemplary functions...
this submission certainly will find its way into many CSSM threads as a hint for solutions as well as good programming practice...

altogether, hats off not only to a ML cognoscente but also to a teacher who clearly seems to be fond of people 'doing' ML...

us

ps: matt, what about a small CONTENTS.M, which would be easier than the (nice) PDF you proved (just a pedestrian thought)...

20 Jul 2009 findsubmat Finds one matrix (a sub-matrix) within another. Author: Matt Fig Karthik Mahadevan

13 Jul 2009 N_PERMUTE_K All possible permutations of the elements of set N, taken K at a time, with repetition. Author: Matt Fig Fig, Matt

Juliette,

You cannot index the output of npermutek(1:5,5) into an array (nuc) of length 4! The index exceeds dimensions because the output of the above call to NPERMUTEK will have many '5's in it. You will get the same error by doing this:

nuc = 'ABCD'
R = nuc(5) % or nuc(6) or nuc(7), etc. nuc only has 4 elements!

This is not an NPERMUTEK problem, it a user misunderstanding the output problem.

13 Jul 2009 N_PERMUTE_K All possible permutations of the elements of set N, taken K at a time, with repetition. Author: Matt Fig Salexa, Juliette

Does this not work for large arrays ??

>> nuc='ABCD';
>> clear('R');n=1;R=zeros(4^n,n);R=nuc(npermutek(1:n,n));
works.
>> clear('R');n=2;R=zeros(4^n,n);R=nuc(npermutek(1:n,n));
works.
>> clear('R');n=3;R=zeros(4^n,n);R=nuc(npermutek(1:n,n));
works.
>> clear('R');n=4;R=zeros(4^n,n);R=nuc(npermutek(1:n,n));
works.
>> clear('R');n=5;R=zeros(4^n,n);R=nuc(npermutek(1:n,n));
??? Index exceeds matrix dimensions.

------------------
I'm not entirely sure where the index is exceeding matrix dimensions.... if only matlab was more specific with error listings.
------------------
But maybe this is only happening on my machine... can someone try and let me know ???

25 Jun 2009 N_PERMUTE_K All possible permutations of the elements of set N, taken K at a time, with repetition. Author: Matt Fig Galib, Syed

It is really a nice thing...it helped me a lot.
Thank you author for this

24 Jun 2009 EXPAND Replicate and tile each element of an array. Author: Matt Fig Fig, Matt

Another reason I bypassed kron is illustrated here:

http://i217.photobucket.com/albums/cc229/spamanon/tester_output-2.png

Urs, I think you are correct about mentioning kron in the see also.

24 Jun 2009 EXPAND Replicate and tile each element of an array. Author: Matt Fig us

just like jos, i also felt at first that this - admittedly sleek engine - was more or less a KRON clone; but then your timing convinced me that there was clearly more to it...
however, i think you should at least mention KRON in a
see also:
statement...
us

24 Jun 2009 EXPAND Replicate and tile each element of an array. Author: Matt Fig Fig, Matt

Hello Jos,

There are a couple of reasons I bypassed kron. The main reason is that expand, even with error checking etc., is faster on my machine(s):

A = reshape(randperm(24),6,4);
SZ = [300,400];
tic
T = expand(A,SZ);
toc %Elapsed time is 0.043622 seconds.
tic
T2 = kron(A,ones(SZ));
toc %Elapsed time is 0.082535 seconds.

For
A = reshape(randperm(144),18,8);
SZ = [300,400];
expand is .25 vs. .78 seconds for kron. 2007b win xp.

expand also works for your second example.
Thanks.

24 Jun 2009 EXPAND Replicate and tile each element of an array. Author: Matt Fig Jos (10584)

Why not simply
kron(A,eyes(SZ))

or, for non-numerical arrays,
X = {'a' 'b' ; [1:3] []}
X(kron(reshape(1:numel(X),size(X)), ones(2,3)))
%ans =
% 'a' 'a' 'a' 'b' 'b' 'b'
% 'a' 'a' 'a' 'b' 'b' 'b'
% [1x3 double] [1x3 double] [1x3 double] [] [] []
% [1x3 double] [1x3 double] [1x3 double] [] [] []

It can be expanded to the ND case using reshape etc ...

Good help though!

04 Jun 2009 ezgraph Performs basic formatting of a plot with a single GUI. Author: Matt Fig Nitika

Very helpful for saving time.
Suggestions: you could also add options for grid color, box line width etc.

02 Jun 2009 COMBINATOR -combinations AND permutations Returns 1 of 4 different samplings on the set 1:N, taken K at a time. Author: Matt Fig Luong, Bruno

Two words: excellent job!

02 Jun 2009 findsubmat Finds one matrix (a sub-matrix) within another. Author: Matt Fig Fig, Matt

Siyi, Your code, as written, will work when there is one submatrix within A. However, it will need to be modified for multiple submatrices. Even without the modification, it is slower to use the approach you suggest. In the following, I made a copy of findsubmat, took out all of the NaN checking and the transposing of A, and put your code in the proper place. Here are some results:

A = round(rand(2000)*1);
B = [1 2;4 5];
A(30:31,60:61) = B; % Only one submatrix.

tic
C = findsubmat(A,B); % Elapsed time is 0.055974 seconds.
toc

tic
C = findsubmat_2(A,B); % Elapsed time is 0.502954 seconds.
toc

Also, this is really the kind of exchange that better takes place through email. Mine is listed in the help for findsubmat.
Feel free to email me about this code.
Thanks.

02 Jun 2009 COMBINATOR -combinations AND permutations Returns 1 of 4 different samplings on the set 1:N, taken K at a time. Author: Matt Fig us

a very nice package/wrapper for a lot of the combinatorial problems almost daily asked for in the NG - or - as the name implies: a TERMINATOR for combiners...

in particular:
- excellent help/good example
- clean engine divided into intelligible subfunctions
- many comments and timings

us

02 Jun 2009 findsubmat Finds one matrix (a sub-matrix) within another. Author: Matt Fig Deng, Siyi

Matt: your code is well written but I really don't understand why use strfind to serch line by line. Compare it to these codes:

% Sorry I'm not used to use capital a,b;

idx = find(a(1:(ra*(ca-cb+1)-rb+1)) == b(1));
idx = idx(mod(idx-1,ra) <= ra-rb);

idc = bsxfun(@plus,0:ra:ra*(cb-1),(0:rb-1).');
c = 2;
d = b(c) == a(idx+idc(c));
while ~all(d)
    idx = idx(d);
    c = c+1;
    d = b(c) == a(idx+idc(c));
end

for general large matrices It seems that searching line by line usually results in overkill.

21 May 2009 PARTITIONS Finds all partitions of a set, or only those partitions of a specified length. Includes a viewer. Author: Matt Fig Rowland, Darren

Excellent, useful file. Well commented and concisely coded.

19 May 2009 PARTITIONS Finds all partitions of a set, or only those partitions of a specified length. Includes a viewer. Author: Matt Fig Fig, Matt

An update has been submitted which allows user to enter the set to be partitioned. For example: partitions(['a','b','c'])

19 May 2009 PARTITIONS Finds all partitions of a set, or only those partitions of a specified length. Includes a viewer. Author: Matt Fig Luong, Bruno

It needs some guts to tackle the partitioning problem in a non-recursive way. Matt has done it, great educational code.

 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com