Tuesday, April 29, 2008

Using dbstop if error

Hi,

Today, Doug posts a very interesting way to debug functions in matlab.

It works with this command:

dbstop if error

More Info here.

Wednesday, April 23, 2008

convert a cell array into a vector with strings

if you have a cell array into a vector with strings, you can use the following command:

my_cell = {'a','b'};
my_new_vector = [my_cell{1:end}];

Friday, April 18, 2008

Excel step graphics

Today i discovered in google a great way to create step plots in excel. You can find the (short) tutorial here:
http://www.tushar-mehta.com/excel/charts/step_chart/

Tuesday, April 8, 2008

print in matlab to the prompt

Hi, i was searching for a possibility to print something in the prompt from a script without using the function disp. disp allways make a new line, and i wanted to have something printed in a single line. fprintf does it very well. check this example:

for i=1:1:5; fprintf('.'); pause(2);end; fprintf('OK'); disp(' ')

Friday, April 4, 2008

Advanced Maneuvers using Mux and Demux | Seth on Simulink

Hi, here is some information about Bus signals in matlab.




have a while