Any small program that is also really cool?

So I am new to Matlab. Our professor gave us a assignment to find some code and then present it. So far we have only studied pretty basic functions like the if,elseif,for,while,switch etc. So I want you people to share with me any cool program that i can present which uses these basic functions and maybe just maybe some others that I dont know too. It might help me learn them too. So the program can be anything thats cool. Could be a beautiful graph, a different graph, a random funny text generator etc. Thanks

 Accepted Answer

Take a look at the function why.m
>> type why

4 Comments

Yes. I saw that. It is a good one. But its a built in. I would like to create a custom one maybe
Take a look at the matlab file exchange, having tons of cool functions. Here is one of my own, for starters:
Thank you Superman. U really helped
You're welcome! And, btw, it is only Noddy, not Superman ;-)

Sign in to comment.

More Answers (1)

I may be biased but I think the coolest function is regionprops. It's really the heart of the Image Processing Toolbox. You can't do any (or much) image analysis without using regionprops.
There are also a lot of cool programs in the image creation contest:

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!