Prev: ccs build error
Next: ARX parameter 'only' matrix
From: Cameron Schmidt on 4 May 2010 23:41 I'm trying to create 200 outputs by entering two different variables 200 times. Here is what I have been trying: >>t=linspace(0,2*pi,200); >>b=asin((5*sin(t))/14); >> v=(5*sin(t+b))/(sin(pi-((t+b)+((pi/2)-t)))) v = -1.2963e-016 Why is this only giving me one answer for v? Based off of the 200 t created, 200 b's are also created, so why doesn't this input/output v 200 times? Any help is much appreciated!
From: TideMan on 4 May 2010 23:53 On May 5, 3:41 pm, "Cameron Schmidt" <schmidt-came...(a)hotmail.com> wrote: > I'm trying to create 200 outputs by entering two different variables 200 times. Here is what I have been trying: > > >>t=linspace(0,2*pi,200); > >>b=asin((5*sin(t))/14); > >> v=(5*sin(t+b))/(sin(pi-((t+b)+((pi/2)-t)))) > > v = > > -1.2963e-016 > > Why is this only giving me one answer for v? Based off of the 200 t created, 200 b's are also created, so why doesn't this input/output v 200 times? > > Any help is much appreciated! Add a dot before the slash in the equation for v. This tells Matlab to do element by element division. v=(5*sin(t+b))./(sin(pi-((t+b)+((pi/2)-t))));
|
Pages: 1 Prev: ccs build error Next: ARX parameter 'only' matrix |