HelloDoes anyone know if it's possible to run an excel file in

  • Thread starter Thread starter bigfoot343
  • Start date Start date
  • Tags Tags
    Excel File
Click For Summary
SUMMARY

It is possible to run an Excel file in Simulink by utilizing the MATLAB function xlsread. Users can implement a .m function block within Simulink to read data from an Excel file and convert it into an array or other desired data types for further processing. This method allows for seamless integration of Excel data into Simulink models, enhancing data-driven simulations.

PREREQUISITES
  • Familiarity with MATLAB and Simulink environments
  • Understanding of .m function block implementation in Simulink
  • Knowledge of the xlsread function in MATLAB
  • Basic skills in handling Excel files and data formats
NEXT STEPS
  • Research the xlsread function in MATLAB for detailed usage
  • Explore creating and using .m function blocks in Simulink
  • Learn about data types and arrays in Simulink for effective data handling
  • Investigate alternative methods for importing Excel data into Simulink, such as using readtable
USEFUL FOR

Engineers, data analysts, and researchers who are working with Simulink and need to integrate Excel data into their simulations.

bigfoot343
Messages
1
Reaction score
0
Hello

Does anyone know if it's possible to run an excel file in Simulink? I have a column with a variable in excel, and don´t know if there is a block that I can get in simulink to run this variable.

Regards
 
Engineering news on Phys.org


type help xlsread. You can use a .m function block to read this data and spit it out as an array or whatever data type you want to simulink.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K