code is too difficult to understand

i have attached a file of the rainflow code can anybody comment this code i cannot understand it from 15 line onward

댓글 수: 4

Guillaume
Guillaume 2019년 2월 13일
편집: Guillaume 2019년 2월 13일
Really? There is nothing complicated about this code.
You can look up the documentation of the few matlab functions that are used ( array2table, convert an array into a table; histogram plot an histogram; xlabel and ylabel, label the axes; figure, create a new figure, rainflow, presumably you know what this does).
If you have a problem understanding a specific line, then please explain what it is you're not understanding.
N/A
N/A 2019년 2월 13일
[c ,hist ,edges ,rmm ,idx] = rainflow(Y,fs);
what does this line does?
N/A
N/A 2019년 2월 13일
actually i am a beginner
N/A
N/A 2019년 2월 13일
histogram('BinEdges',edges','BinCounts',sum(hist,2))
this line as well
Really looking forward to thank you

댓글을 달려면 로그인하십시오.

답변 (1개)

Guillaume
Guillaume 2019년 2월 13일

0 개 추천

I'm not sure what you're looking for here. We're not going to teach you matlab, so perhaps you should grab a book and/or read some tutorial (e.g. Getting Started).
[c ,hist ,edges ,rmm ,idx] = rainflow(Y,fs);
what does this line does?
Assign the output of rainflow (called with arguments Y and fs) to the variables c, hist, edges, rmm and idx. The meaning of these outputs is documented.
histogram('BinEdges',edges','BinCounts',sum(hist,2))
plots the histogram of the sum of hist across the columns, using edges as the x-axis. histogram is documented with plenty of examples.

카테고리

도움말 센터File Exchange에서 Vibration Analysis에 대해 자세히 알아보기

질문:

N/A
2019년 2월 13일

답변:

2019년 2월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by