function arduinomatlab n=21 v1=zeros(1,1000); v2=zeros(1,1000); delete(instrfind({'Port'},{'COM3'})); s = serial('COM3','BaudRate',9600,'Terminator','CR/LF'); warning('off','MATLAB:serial:fscanf:unsuccessfulRead'); fopen(s); muestra...
Please look at this:http://blogs.mathworks.com/videos/2012/07/03/debugging-in-matlab/Perhaps you mixed up rows and columns. Put this before you start assigning all the x's temp
I need for each row to save the first 8 elements af the array in 1 byte variable, elements from 9 to 16 in a second byte and so on.. So that the end I will have 4 byte variables for each row to sent to arduino. How can I do that? thank you all....