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".

답변 (1개)

Tushar Sharma
Tushar Sharma 2024년 8월 30일

0 개 추천

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.

카테고리

도움말 센터File Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기

질문:

2015년 1월 25일

답변:

2024년 8월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by