Author Topic: MATLAB functions q  (Read 1550 times)

0 Members and 1 Guest are viewing this topic.

Offline benjiTopic starter

  • Supreme Robot
  • *****
  • Posts: 832
  • 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 sdk32285

  • Supreme Robot
  • *****
  • Posts: 391
  • Helpful? 0
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.

"The Difficult gets done quickly; the impossible might just take a little longer"

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: 832
  • 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

 

Related Topics

  Subject / Started by Replies Last post
7 Replies
2675 Views
Last post April 25, 2008, 08:03:10 AM
by superchiku
1 Replies
906 Views
Last post September 23, 2009, 08:56:01 AM
by bsamuels
8 Replies
1149 Views
Last post January 15, 2010, 01:45:48 AM
by little-c
14 Replies
1676 Views
Last post March 17, 2010, 06:21:22 AM
by madsci1016


Get Your Ad Here

data_list