Society of Robots - Robot Forum

Software => Software => Topic started by: benji on December 09, 2007, 03:25:01 PM

Title: MATLAB functions q
Post by: benji on December 09, 2007, 03:25:01 PM
hey folks, i have a matrix in my ATmega32 to be sent to the pc , i know how to recieve data through the serial port by matlab but does anyone know how to arrange it into a matrix?
Title: Re: MATLAB functions q
Post by: Kohanbash on December 11, 2007, 06:36:13 AM
I know its a bit of a hack, but if you write out one row at a time to a tab delimited text file than just load it using the "load" command in matlab and append it to the end of the current matrix.

Title: Re: MATLAB functions q
Post by: neo01124 on December 11, 2007, 08:47:41 AM
I know its a bit off topic but i am tryin to send data to an at89s52 thru a serial port using matlab but i cant recieve anything at the uC end any troubleshooting tips??
Title: Re: MATLAB functions q
Post by: benji on December 11, 2007, 06:00:11 PM
try sending data to your micro by visual c++ (just write a little code) then you l be able to know if your micro is doin fine or not

, can u mention the matlab functions i can use for loading or any code that i hav to write in order to build my matrix?