How can I specify the width of Bin Edges when calculating the rainflow cycle counts matrix 'c = rainflow(x)'

20 visualizzazioni (ultimi 30 giorni)
Dear Madam/Sir,
How can I specify the width of Bin Edges when calculating the rainflow cycle counts matrix 'c = rainflow(x)' ?
After computing the cycle counts for the data, using the command: [c,hist,edges,rmm,idx] = rainflow(Y) , I plot a histogram of cycle counts as a function of stress range, using the command: histogram('BinEdges',edges','BinCounts',sum(hist,2)) , as indicated in the example of the Matlab Documentation: https://ch.mathworks.com/help/signal/ref/rainflow.html#d120e139233
It seems that the 'Bin Edges' are assigned an arbitrary width value. Instead, I would like to assign a specific width value to the Bin Edges, while ploting the histogram of the cycle counts, resulting from the cycle counts matrix 'rainflow(x)'.
Could you please help me, how can I specify the width of Bin Edges when calculating the rainflow cycle counts matrix 'c = rainflow(x)' ?
Thank you very much in advance for your help
Best regards,
Geri
  5 Commenti
Sandro Günter
Sandro Günter il 10 Ago 2022
Modificato: Sandro Günter il 11 Ago 2022
In order to count the half cycles correctly, you can add the following code:
index = find(count(:,1)==0.5); % find half cycles
N = N - 0.5 * histcounts(count(index,2),my_edges); % subtract half cycles

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Vibration Analysis in Help Center e File Exchange

Prodotti

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by