I want to upload ECG signals on Simulation, what is the better way to do it?

2 ビュー (過去 30 日間)
Pankhuri Vanjani
Pankhuri Vanjani 2017 年 8 月 10 日
回答済み: Aveek Podder 2017 年 8 月 18 日
I tried importing signals into a file block but got stuck due to this error while running the simulation.I selected the .mat file which i downloaded from physionet.
Simulink does not support loading the input data in file '100m.mat'. Simulink can only load two-dimensional arrays or timeseries objects. The array must consist of one-dimensional, double, noncomplex samples. To load data having a different type, complexity, or dimension, use a timeseries object. For either an array or a timeseries object, at least one sample point is necessary.

回答 (1 件)

Aveek Podder
Aveek Podder 2017 年 8 月 18 日
From physionet, I found the sampling rate to be 360 samples per second per channel.
Using this information the time series can be generated.
You can use the "InitFcn" callback from "Model properties" to load the .mat file and generate the time series. Then use the "Data Import/Export" option from "Configuration Parameters" of the model to load the data into "inport" block.

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by