calculate the average of each face ?

조회 수: 4 (최근 30일)
hayder al-omairi
hayder al-omairi 2021년 9월 22일
답변: Yash 2024년 4월 2일 6:33
Hello every body
any one help me, I have a time sereise date with multiple events (4 repeated events) R - H - S - B and R repeated 30 times and H - S - B repeated 10 times as showen in the picture attached, I need to calculate and plot the average for each face ?

답변 (1개)

Yash
Yash 2024년 4월 2일 6:33
To calculate and plot the average for each face, you can use the accumarray function in MATLAB. Lets assume you have the time series data stored in the time variable and the corresponding events in the event variable. The accumarray function can be used to calculate the average time for each face by grouping the time values based on the corresponding event. The resulting averages can then be plotted using the bar function.
Read more about the above functions here:

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by