Recent content by DrClaude

  1. DrClaude

    I Did Feynman make a mistake in the drawing of moving charges?

    It is an arbitrary choice. I take it that ##\mathbf{E}_1## and ##\mathbf{B}_1## are the electric and magnetic field at the position of particle 1.
  2. DrClaude

    I Qubits state calculation

    No idea. Were I asking such a question, I would want an answer in terms of θ and φ.
  3. DrClaude

    Experimenting whether the diameter of a pot affects boiling time for water

    A much more reproducible experiment would be to take a single pot with a lid with a hole in it, and change the size of the hole. You can take a single sheet of appropriate material (if it's plastic, make sure it won't melt or deform at boiling temperatures) with a hole in it that you make...
  4. DrClaude

    MATLAB [~,~,~,~,~,~,~,~,spec] Too many output arguments..

    % Usage: % >> spectopo(data, frames, srate); % >> [spectra,freqs,speccomp,contrib,specstd] = ... % spectopo(data, frames, srate, 'key1','val1', 'key2','val2' ...); The function has five output arguments.
  5. DrClaude

    I When and why can ∂p/∂t=0 in position space?

    If there is not explicit time dependence, then the operator is independent of time.
  6. DrClaude

    What is global warming due to?

    Indeed. Thread closed.
  7. DrClaude

    MATLAB Plots and FFT of Rows or Columns of Data

    The first data points of signal look like so it is no wonder that you get the Fourier transform you have plotted. Doesn't look like something that would give you a peak close to 1000 Hz.
  8. DrClaude

    MATLAB Plots and FFT of Rows or Columns of Data

    It's hard to say without seeing the data. If you comment out the line signal=signal-mean(signal); is the result better?
  9. DrClaude

    MATLAB Plots and FFT of Rows or Columns of Data

    The fread there means that the first data point in test.bin is the first data point of channel 1, the second data point the first data point of channel 2, and so on. Is this correct? Then amend the fist line of the code to signal = data(1,:);
  10. DrClaude

    Mathematica Coloring and legending issue

    Your color scale is based on T, but what you are plotting is rs. For rh in the range of the parametric plot, the values of rs go beyond the corresponding range in T, for example at rh = 0.6, rs ≈ 0.6, while the color scale goes tp to T[0.6] ≈ 0.53.
  11. DrClaude

    C/C++ Parallel processing for loops and pointer defined outside the loop

    I don't see a problem with breaking out of the inner loop or using a goto if the label it goes to is inside the outer loop. The reason you can't break out of a loop is that it is a linear process (it will stop the loop at a given value of the loop variable) that can't be parallelized.
  12. DrClaude

    Mathematica Bar legend for a different function in mathematica

    Add PlotLegends -> BarLegend[{"SolarColors", {0, 1}}] to the ParametricPlot.
  13. DrClaude

    Number of Miles In One Light Year

    That is correct. Note however that a year is considered to be 365.25 days, not 365 (hence a leap year every four years). This does not change the numerical value of the length of the light year with 3 significant digits, as you wrote it.
  14. DrClaude

    Would it be possible to make a self powered fan?

    Per the rules, we do not discuss perpetual motion machines, so this thread is closed.
  15. DrClaude

    C/C++ Parallel processing for loops and pointer defined outside the loop

    Yes, each thread will create a new instance of the pointer.
Back
Top