Prev: Decision Feedback Equalizer DFE
Next: imellipse
From: Ali Y. on 17 May 2010 09:42 Hi , I have two variable (x1 and y1), which y1 is a result of interpolation "interp1". I want to calculate theta as below, but because of interp1, "ans" for each theta is not 0 (x=x1, y=y1, then theta(i) suppose to be 0 ). Then i tried to reduce the precision of y1 with fixpt_interp1, but it doesn't work. How can I reduce the precision of inputs (x1) and outputs (y1)? thanks in advance x=0:1; y=1:-.1:0; x1=1-y; y1=interp1(x,y,x1); theta=atan((y-y1)./(x1-x)); for thete: ans= NaN 0 0 NaN NaN NaN NaN NaN NaN NaN -1.5708 for x1-x: ans = 1.0e-016 * 0 -0.2776 -0.5551 0 0 0 0 0 0 0 0 for y-y1: ans = 1.0e-016 * 0 0 0 0 0 0 0 0 0 0 -0.2776
|
Pages: 1 Prev: Decision Feedback Equalizer DFE Next: imellipse |