load ECG sig to simulink

please if i have an ECG.mat on workspace how can i load it to simulink as an input source for a simulation

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 4 月 23 日
編集済み: Azzi Abdelmalek 2016 年 4 月 23 日

0 投票

Your file should look like
t=0:0.1:10 % time Vector
y=sin(t) % Your signal
v=[t;y];
save your_mat_file v
Then in your simulink model add a frome file block. and set the name to your_name_file

5 件のコメント

mohammad
mohammad 2016 年 4 月 23 日
but how can use it by simulink
Azzi Abdelmalek
Azzi Abdelmalek 2016 年 4 月 23 日
Have you read all my answer?
mohammad
mohammad 2016 年 4 月 23 日
an error happened while load the signal
mohammad
mohammad 2016 年 4 月 23 日
Azzi Abdelmalek
Azzi Abdelmalek 2016 年 4 月 23 日
How did you get v.mat?

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeSimulink についてさらに検索

タグ

質問済み:

2016 年 4 月 23 日

コメント済み:

2016 年 4 月 23 日

Community Treasure Hunt

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

Start Hunting!

Translated by