go away spammer

Author Topic: MATLAB functions q  (Read 2775 times)

0 Members and 1 Guest are viewing this topic.

Offline benjiTopic starter

  • Supreme Robot
  • *****
  • Posts: 830
  • Helpful? 0
MATLAB functions q
« 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?
good ol' BeNNy

Offline Kohanbash

  • Supreme Robot
  • *****
  • Posts: 430
  • Helpful? 1
Re: MATLAB functions q
« Reply #1 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.

Robots for Roboticists Blog - http://robotsforroboticists.com/

Offline neo01124

  • Jr. Member
  • **
  • Posts: 46
  • Helpful? 0
Re: MATLAB functions q
« Reply #2 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??

Offline benjiTopic starter

  • Supreme Robot
  • *****
  • Posts: 830
  • Helpful? 0
Re: MATLAB functions q
« Reply #3 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?
good ol' BeNNy

 


Get Your Ad Here