フィルターのクリア

how can I simulate values I saved from CSV file to array.mat in Simulink?

7 ビュー (過去 30 日間)
SimTec
SimTec 2022 年 8 月 3 日
回答済み: Suman 2024 年 8 月 5 日 4:29
Hello,
I have uploaded a csv file into matlab ,this CSV has multiple column with values. I would like to read for example the first coomn which is time with any other column into simulink and see it on scope.
is there a way to do that?

回答 (1 件)

Suman
Suman 2024 年 8 月 5 日 4:29
Hi,
You can use the "readtable" function to read the data from the CSV file to MATLAB. The "readtable" function returns a MATLAB "table" data. You can then use the "From Workspace" block to read that data in Simulink and use as required.
You can also refer to this example for using the "readtable" function: https://www.mathworks.com/help/matlab/import_export/read-spreadsheet-data-into-table.html

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by