How can I force Simulink to use a set of data (time depended) as input?
Ältere Kommentare anzeigen
Hi All,
I have a Simulink file which simulate the dynamics of a car. In particular, the model input are the steering wheel angle and the speed. The output is the lateral acceleration developed by the car. The sampling time of the model is 0.005 sec.
I have the input data logged every 0.005sec from the data acquisition system of a car in Excel format. The file contain 3 columns: time, steering wheel angle and speed
How can I force Simulink to process the file using time, steering wheel angle and speed from the Excel file?
Any help is more than appreciated
Thanks for your time
G
Akzeptierte Antwort
Weitere Antworten (1)
Rick Rosson
am 1 Jan. 2013
Bearbeitet: Rick Rosson
am 1 Jan. 2013
1 Stimme
Use the xlsread function to read the data into the MATLAB Workspace, then use the From Workspace block to bring the data into Simulink.
Kategorien
Mehr zu Aerospace Applications finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!