Thursday, 15 April 2010

matlab - Create vector of results from For loop with decimal index -


I am trying to run for the following loop and create a vector with the result from each walk.

  for X = 0.2: 0.1: 1, a = quadgk (h, 0.2, x) end   

I have tried that in various ways Usually work, but the problem is that 'q' should have a scalar 'x' in the function.

Can anyone help me with it?

If I understand you correctly, then you should see the result of each walking code a You can do the following:

  count = 0; For X = 0.2: 0.1: 1 calculation = count + 1; One (count) = quadruple (h, 0.2, x) end    

No comments:

Post a Comment