フィルターのクリア

How to create a pivot table from a generated plot (data comes from an Excel sheet)

1 回表示 (過去 30 日間)
Mahnoor
Mahnoor 2023 年 7 月 28 日
編集済み: Mahnoor 2023 年 8 月 9 日
Hello All,
Hope you are well.
I have generated this piece of code which displays a graph of Powertrain torque (Nm) vs Time (s). This data has been taken from the attached excel file below and have added its pathway/location to the first line of the code so the data is read directly from the sheet. I have also attached the matlab code and excel sheet below for easy access.

回答 (1 件)

Steven Lord
Steven Lord 2023 年 7 月 28 日
If upgrading from R2020b is an option, release R2023a introduced the pivot function for creating a pivot table.
If you want to create a histogram, the histogram function was introduced in release R2014b.
But for what you described I'm guessing you are going to want to discretize your data then do some run length encoding.

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by