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

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 23 Apr 2016
Edited: Azzi Abdelmalek on 23 Apr 2016
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 Comments

but how can use it by simulink
Have you read all my answer?
an error happened while load the signal
How did you get v.mat?

Sign in to comment.

Categories

Find more on Simulink in Help Center and File Exchange

Tags

Asked:

on 23 Apr 2016

Commented:

on 23 Apr 2016

Community Treasure Hunt

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

Start Hunting!