Recent content by poiuy

  1. P

    MATLAB MATLAB - changing variable name with each iteration?

    I should also have said that in my first post data_in is a vector rather than a single value. data_in is the thing changing with each loop according to the loop counter. The loop counter adjusts the frequency of a sine wave, the data_in is then 1000 samples of the wave.
  2. P

    MATLAB MATLAB - changing variable name with each iteration?

    Sorry, could you elaborate a little? The data is a function of the counter variable, but each for each counter value a vector is produced. I need to save and then access each of these vectors rather than it just being overwritten.
  3. P

    MATLAB MATLAB - changing variable name with each iteration?

    I know that indexing could be used if current was a single value, like in the following: i = 1 ; for x = 0:1:10 current(i) = x^2 ; i = i+1 ; end But if each x value was a vector rather than an integer how could I index the different current vectors.
  4. P

    MATLAB MATLAB - changing variable name with each iteration?

    Hi all, I am sure this will be easy for one of you clever people but it has got me stumped. I am working on a physics project and I am using MATLAB to acquire some data. So basically I have a time varying current signal coming in and I am collecting the current data and plotting it against...
  5. P

    Star temperature from B-V color

    Homework Statement I need to know how to calculate the temperature of a star from it's B-V color Homework Equations B = -2.5log(F440)+C V = -2.5log(F550)+C B-V = -2.5log(F440/F550) The Attempt at a Solution Really no idea, all my textbooks say that B-V color is used to...
  6. P

    Proportion of atmospheric Carbon 14

    The half-life of Carbon 14 is 5730 years and the activity of atmospheric carbon due to Carbon 14 is 255Bq/Kg. What proportion of atmospheric carbon atoms are Carbon 14. Attempted solution Decay constant for C14 = ln(2)/t(1/2) = ln(2)/5730 = 1.21x10^-4 Current activity A =...
  7. P

    How Is the Number of Particles Calculated in a 1D Diffusion Slab?

    Actually thinking about it, it's incredible that I couldn't work that out for myself.
  8. P

    How Is the Number of Particles Calculated in a 1D Diffusion Slab?

    Wow thanks, incredible that I could have had 14 years of education and never been taught that, thanks very much.
  9. P

    How Is the Number of Particles Calculated in a 1D Diffusion Slab?

    The solution to the diffusion equation in 1D may be written as follows: n'(x,t) = N/sqrt(4piDt) * exp(-x^2/4DT) where n'(x,t) is the concentration of the particles at position x at time t, N is the total number of particles and D is the diffusion coefficient. Write down an expression for the...