Import excel in simulink

Hi guys.
I would like to ask how to import excel file into simulink block? i have try using matlab function block which is i write xlsread function. However, it shows error "the function xslread is not supported for standalone code generation".

Respuestas (1)

Tushar Sharma
Tushar Sharma el 30 de Ag. de 2024

0 votos

You may import data from Excel as signals in Simulink using the "From Spreadsheet" block - https://www.mathworks.com/help/simulink/slref/fromspreadsheet.html.
Alternatively you can also programmatically import data from excel file into MATLAB using "readtable" function - https://www.mathworks.com/help/matlab/import_export/read-spreadsheet-data-into-table.html.

Categorías

Más información sobre Data Import from MATLAB en Centro de ayuda y File Exchange.

Preguntada:

el 25 de En. de 2015

Respondida:

el 30 de Ag. de 2024

Community Treasure Hunt

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

Start Hunting!

Translated by