MATLAB Answers

Integration of EXCEL in Simulink

조회 수: 1(최근 30일)
Maximilian Elias
Maximilian Elias 2020년 7월 14일
답변: Jemima Pulipati 2021년 2월 20일
Hello,
i have a problem when i want to read data from an EXCEL table, i use the SPREADSHEET block, as readout data, link the whole and DISPLAY to display the values.
The table looks like this as an example:
Column Values
Name 1 Value 1
Name 2 Value 2
Name 3 Value 3
In Simulink can not retrieve the names, although this is not the big problem.
However, I only get one value retrieved from the 2nd column and not all values.
The goal is to get the values from the Excel table in Simulink and process them further, ideally directly with the names, but if necessary I would simply assign a numerical value to each name.
Best regards
Max
Translated with www.DeepL.com/Translator (free version)

답변(1개)

Jemima Pulipati
Jemima Pulipati 2021년 2월 20일
Hello,
From my understanding, you are facing an issue while reading data from a spreadsheet using the 'From Spreadsheet' block.
This block interprets the first row as signal names, first column as time and the remaining columns as signals. So you may consider storing the Excel data in this format. For more information please refer to the following link.
The following link describes an example on importing data from Excel.

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by