Just take a look at this:
just another blog. here you'll find my experiences with Matlab/Simulink, vba, LaTeX and Mac OS X.
Monday, June 30, 2008
Some cool matlab plots
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
Just take a look at this:
Thursday, June 26, 2008
tips how to use simulink better - Part 2
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:

Here are some of the pictures of the original post:
Friday, June 20, 2008
How to change the default Google Desktop Data index folder
here is more information about how to change the index location of Google Desktop Search (gds).
How to change the color of the grid without changing the color of the ticks
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.
this will generate gray grids, like in the picture above.
ezplot('x')
grid on
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.
Reading Formatted Text in Matlab
Have you ever tried to read formatted text in matlab without effort? i do, bot now, there is a blog posting that handles this issue. Try it out right here.
Have a while!
Have a while!
Wednesday, June 18, 2008
advanced use of reshape
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!
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=reshape(A,24*4,[]);
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
Thie file SETAXES (by Mukhtar Ullah)is prety cool. It allows you to introduce LaTeX commands into the ticks of a plot, very important if you plan to make good-looking plots.
matlab advanced plots
in this post you can find information über advanced plots with matlab. here is a preview of the plots:
Latex Symbols (for matlab)
Here is the complete list of Latex Symbols. You can use this symbols in matlab as well.
Monday, June 16, 2008
Firefox 3.0 Download Day
Thursday, June 12, 2008
reshape - How to reshape a Matrix or a Vector in Matlab
The following code transforms a Matrix A
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.
reshape(flipud(rot90(A)),[],1)
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.
reshape(flipud(rot90(A)),[],1)
Wednesday, June 11, 2008
convert a vector into a matrix in matlab
i was searching for the way to convert a vector into a matrix with matlab and i found (good) ways to do it.
the first one is using reshape (link with examples), the second is using vec2mat (link with examples).
the first one is using reshape (link with examples), the second is using vec2mat (link with examples).
Sunday, June 8, 2008
Tips on how to use Simulink better
Great tips on how to configure and use simulink. visit the link here.
i liked them. you too?
i liked them. you too?