Recent content by DrClaude

  1. 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.
  2. 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.
  3. DrClaude

    What is global warming due to?

    Indeed. Thread closed.
  4. 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.
  5. 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?
  6. 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,:);
  7. 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.
  8. 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.
  9. DrClaude

    Mathematica Bar legend for a different function in mathematica

    Add PlotLegends -> BarLegend[{"SolarColors", {0, 1}}] to the ParametricPlot.
  10. 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.
  11. 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.
  12. DrClaude

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

    Yes, each thread will create a new instance of the pointer.
  13. DrClaude

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

    If you simply declare the pointer as private, each thread will have its own pointer, but that pointer will point to a random place in memory. If you declare it as firstprivate, the address pointed to will be the same for all thread, i.e., each thread will have its own pointer, put all those...
  14. DrClaude

    I Conservation of energy and wave function collapse

    Found.Phys. 30 (2000) 1145-1160 https://doi.org/10.1023/A%3A1003677103804
  15. DrClaude

    A Question about cgs vs SI units in the context of the Debye Length

    Equations will be different when using CGS compared to SI, so one cannot simply change the units of the values used. Could this be source of your problem? https://en.wikipedia.org/wiki/Gaussian_units
Back
Top