Error in drive cycle block while extracting the data using the excel file.

6 ビュー (過去 30 日間)
LALIT PANKAJ GROVER
LALIT PANKAJ GROVER 2021 年 10 月 3 日
回答済み: Pratik 2024 年 4 月 16 日 8:54

回答 (1 件)

Pratik
Pratik 2024 年 4 月 16 日 8:54
Hi Lalit,
As per my understanding, the drive cycle block does not read from mat file. It throws error about error in evaluation 'MaskDialog'. By design, the mat import only works for files containing a time series object. Ensure your .mat file contains a time series object. If your data is currently in another format (e.g., a simple array or table), you'll need to convert it into a time series object. If you need to create a time series object from your data, you can do so using MATLAB commands. Assuming you have two vectors time and data, you can create a time series object as follows:
ts = timeseries(data, time);
Please refer to the documentation of 'timeseries' for more information:
I hope this helps!

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by