wow, today i took a look at flickr while i was searching for cool matlab plots.
Just take a look at this:You can find more in Arenamontanu's matlab pictures at flickr
Monday, June 30, 2008
Thursday, June 26, 2008
some days ago i posted about how to use simulink better. Now there is more information from Set. You can find the new posting on how to use simulink better and faster here.
Here are some of the pictures of the original post:
Friday, June 20, 2008
here is more information about how to change the index location of Google Desktop Search (gds).
Have you ever tried to change the color of the grid in a plot? right, the color of the axis changes as well. it is not possible to set the color of the grid separately. There is a good workaround here.
set(gca,'Xcolor',[0.85 0.85 0.85])
c_axes = copyobj(gca,gcf);
set(c_axes, 'color', 'none', 'xcolor', 'k', 'xgrid', 'off', 'ycolor','k', 'ygrid','off');
this will generate gray grids, like in the picture above.
Wednesday, June 18, 2008
on this posting i explained how to use reshape. Now i want to share with you a good idea i had today.
The idea is to use reshape to acces some part of a vector. Lets say, A is a vector with 35040 entries (365 days, 24 hours, 4 values per hour... 4 values per hour one year long). If you want to make a sum of A for every day, you can do that with a for-loop. this isn't very fast. Instead of that, you can use reshape:
B is a 96 (one day) x 365 Matrix. Then, you can just make sum(B) and you have the sum of all days into a vector without using any loop!
SETAXES: A matlab function to change axes parameters. Best to add latex commands to the ticks in Matlab
Monday, June 16, 2008
Thursday, June 12, 2008
The following code transforms a Matrix A
1 2 3 4 5
6 7 8 9 10
11 12 13 14 15
16 17 18 19 20
into a vector, in the order shown in A.