Import .csv file using simulink, reading the entry and storing in variable and update the variable with new entry every 0.1s

7 ビュー (過去 30 日間)
Manoj Pai
Manoj Pai 2018 年 12 月 19 日
回答済み: Stephan 2018 年 12 月 19 日
I have attached csv which has multiple rows and columns.
I need to read value from .csv file attached for example Latitude and store in a variable "lat", the value of lat needs to be upated with new entry of file every 0.1s.

回答 (1 件)

Stephan
Stephan 2018 年 12 月 19 日
Hi,
you could use the from file block in Simulink. The attached .mat-file contains your data converted to a timeseries object, which is proper to use it in this block. To learn more read about date and time, timeseries and think about how to convert your time stamp to a datetime.
Best regards
Stephan

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

製品


リリース

R2013a

Community Treasure Hunt

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

Start Hunting!

Translated by