So today I was browsing 9GAG, saw a post like: telnet this and enjoy, starwars fans :-)
So I tried:
telnet towel.blinkenlights.nl
Most epic ASCII stuff ever made.
2012年7月6日星期五
2012年6月17日星期日
How to use nice colors in Matlab Plot
One major problem I always had in Matlab plotting is that other than the "default" 6-7 colors, it's hard to use different colors.
I just found a really nice solution:
http://scslin.blogspot.com/2011/09/matlab-plot-with-more-colors.html
Basically, you first download a small function "rgb" from:
http://www.mathworks.com/matlabcentral/fileexchange/24497-rgb-triple-of-color-name-version-2
Then, you can call:
plot(x,y,'color',rgb('olive'));
You will be able to draw a line using a "olive" color.
I just found a really nice solution:
http://scslin.blogspot.com/2011/09/matlab-plot-with-more-colors.html
Basically, you first download a small function "rgb" from:
http://www.mathworks.com/matlabcentral/fileexchange/24497-rgb-triple-of-color-name-version-2
Then, you can call:
plot(x,y,'color',rgb('olive'));
You will be able to draw a line using a "olive" color.
The available colors are as follows:
Labels:
Matlab,
Visualization
2012年5月15日星期二
Some useful functions for subplot in Matlab
So there are two things that the subplot function in Matlab can not do.
1. Generate an "overall" title on the top of all sub-figures.
2. Make the sub-figures as compact as possible (usually very large margins will be made).
Normally, what we can do is save each sub-figure as eps or pdf, and use LaTeX to organize them. This works well and I highly recommend this way when you are preparing publication ready figures, but there are times that you just want to generate some report quickly and nicely.
So I found this two nice functions in Matlab file exchange:
1. mtit. This one will place a title automatically for you on top of everything.
2. subaxis. This one does roughly the same thing as "subplot", but with options that enables you to remove margins.
1. Generate an "overall" title on the top of all sub-figures.
2. Make the sub-figures as compact as possible (usually very large margins will be made).
Normally, what we can do is save each sub-figure as eps or pdf, and use LaTeX to organize them. This works well and I highly recommend this way when you are preparing publication ready figures, but there are times that you just want to generate some report quickly and nicely.
So I found this two nice functions in Matlab file exchange:
1. mtit. This one will place a title automatically for you on top of everything.
2. subaxis. This one does roughly the same thing as "subplot", but with options that enables you to remove margins.
订阅:
博文 (Atom)