Complex functions

hello i would like to ask how to send to arduino from matlab or the IDE the complex exponential function exp{imtheta} where m is an integer and i=sqrt(-1). thanks very much.

Is it written in C? If so, simple cut and paste may do it.

Did you mean to send some numbers?

yes, first the function will be evaluated by the choice of m and theta and then sent to arduino. thanks.

You would send two real numbers (the real and imaginary parts of the complex result) to the Arduino, just as you would any other numbers.

There are a number of Matlab/Arduino tutorials on line.

Keep in mind that the Arduino can calculate those numbers faster than they can be sent from Matlab through the serial port.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.