Register now or log in to join your professional community.
speaking from experience Converting matlab M file or simulink model to embedded coder wont be efficient. thus the solution is simple create your M file code or simulink model and let Arduino controller works as your I/O unit so your PC will be the Microcontroller this is more efficient . follow this link for more information (http://www.mathworks.com/hardware-support/arduino-matlab.html?refresh=true)
after the verification of the functionality of the matlab design, we have to convert the matlab data flow system into a electronics design using circuit designing tools even after verification of the similar functionality equivalent to the expected working we have to decide first about WHICH family of micro-controller will perfectly suits for your design like number of ADC, DAC, PWM channels required, then we have to frame a functional frame, then we have to develop the CODE in c, after processing with suitable assembler or IDE tools we can generate a .HEX file which is a HEXADECIMAL bits, then with Relevant PROGRAMMER we need to LOAD the TARGET MICRO-CONTROLLER, after these process we need another functional verification with the developed HARDWARE, then we can see our perfect working of the MATLAB design with the hardware (with micro-controller).
Yes, we can very well put the matlab code into the microprocessor by changing the code into c language code. We can get the c code from matlab itself, then the rest is taken care by the compiler of the microprocessor.
YES.. WE CAN PUT INTO THE MICROPROSSER BY CHANGING INTO HEX.FILE
NO, MATLAB code cannot be executed directly in Microprocessor. We have to find the compiler for that particular Microprocessor (e.g. Code Composer for TI's Microprocessors ), which translate the code in C or any other high level language in to low level language and ultimately we have the out file which can be programmed in the memory interfaced with microprocessor.
There is a tool in simulink which you can use to program your arduino micrcontroller. the newer version of MATLAB allows you to convert you MATLAB code to Embedded C code, but code conversion may not be always efficient.
You can use Matlab encoder to get C code. Then you compile it for any microcontroller
yes, we can put it into MIcroprocessor by connecting it to I/O port and select that special port in MATLAB through programming for communication.
yes .. we will have to convert the program into hex file
Yes, by converting it into hex file.
Yes. You have to put your code as an integrated physical circuit.