Importing Excel data into Simulink for giving as input signal - Contains Enumeration values also

2 ビュー (過去 30 日間)
I want to import the data from Excel file to Simulink. Is it possible to import and save to .mat file in which the excel input contains enumeration values also?
  • Import excel data to Simulink - The signals in the excel file contains enumerated values also.
  • Is it possible to save to save enumerated signals to .mat file and give as input to the model?
  9 件のコメント
Varunjith Vijayan
Varunjith Vijayan 2018 年 1 月 1 日
But my model will be expecting enum data inputs. Whether it will work?
Santosh Gnanasekaran
Santosh Gnanasekaran 2018 年 1 月 1 日
編集済み: Santosh Gnanasekaran 2018 年 1 月 1 日
Yes, it should Once the data has been imported, write a script to propagate the enum inputs to your model.

サインインしてコメントする。

回答 (1 件)

Akshat Dalal
Akshat Dalal 2024 年 7 月 1 日
Hi Varunjith,
For the excel sheet to comply with Signal builder while importing, it should not contain non-numeric values. So, try not using non-numeric values in your excel sheet.
Following is the link for a blog, which also covers importing excel sheet into Signal Builder:
I would sugest you to use a 'From Workspace' block or a Root-Level 'Inport' block. Define your singal in the base workspace and pass it to one of those blocks.
This should be a good starting point with links to the possible ways to import your signal:

カテゴリ

Help Center および File ExchangeLoad Signal Data for Simulation についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by