Real-time Workshop for serial communication: clear input buffer needed Let me add that data is arriving from the USB every 32ms and we intended to just read it when its available, and plot it. After that we want to compare this value to the same value but coming from a NI DAQ board which can be read every 1ms in real-time. With this we intend to calculate the delay of communication betwee... 7 Aug 2010 03:58
Real-time Workshop for serial communication: clear input buffer needed Dear all, I am having a problem using the packet input function on real-time. I am able to read the 17 bytes of data I am sending through the serial port in a good way BUT sometimes I end up having an extra byte in the frame which is making my buffer shifting one position every time this happens. E.g. byte 1 ... 7 Aug 2010 03:58
Real-time Workshop for serial communication: clear input buffer needed Dear all, I am having a problem using the packet input function on real-time. I am able to read the 17 bytes of data I am sending through the serial port in a good way BUT sometimes I end up having an extra byte in the frame which is making my buffer shifting one position every time this happens. E.g. byte 1 ... 7 Aug 2010 03:58
How to use dblquad command Dear all I used the bellow commands in the command window but I have a problem for using dblquad. I dont know the wrong point. Someone who know how handle this problem please suggest me. Thanks for any help syms x y z; fa=5000; ht=2/fa; syms dzdx dzdy; dzdx=2*ht*fa/pi*(cos(x*fa)*cos(y*fa)+(cos... 7 Aug 2010 05:02
Regarding ploting In matlab plotting, Generally we have grids on numeric values. e.g. 0.2, 0.4, 0.6,... But I want Pi, Pi/2, Pi/4, etc. Kidly help me how to do that. ... 7 Aug 2010 23:25
looping with a function Hello guys, I am coding a rather large application and am faced by another stumbling block and need your help and expertise. Firstly, as follows is the function: %====================================== function Return = Return_answer (x, X) Return = -(x * X(1,1) + X(3,1)) / X(2,1); %=======... 7 Aug 2010 01:49
Do NOT use virtual memory/out of memory error? I would much prefer if MATLAB would just give me an "Out of Memory" message and refuse to continue executing my code if/when it runs out of physical RAM and feels the need to start using virtual memory. The reason is that virtual memory is so slow on my computer that I usually need to kill MATLAB or perform a hard reb... 6 Aug 2010 23:39
generate random values between min max values How can I generate random values between 2 specified values. Let us say A, B and C are 3 columns. I want to generate 9 rows with values of A between 9.63 (min) and 15.7 (max), values of B between -2.28 (min) and 7.4 (max) and values of C between 0.97 (min) and 3.52 (max) . It does not matter to me whether the min an... 9 Aug 2010 13:26
Restructuring cell arrays with cellfun If I understand you correctly, you will need to nest your calls to CELLFUN. D = cellfun(@(y) cellfun(@(x)[x(:,1) x(:,3) x(:,2) x(:,4)],y,'Un',0),C,'Un',0) but honestly, is this going to be faster than a FOR loop? Or are you just looking for compact notation? ... 9 Aug 2010 07:55 |