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

Respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 23 de Abr. de 2016
Editada: Azzi Abdelmalek el 23 de Abr. de 2016

0 votos

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 comentarios

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

Iniciar sesión para comentar.

Categorías

Más información sobre Simulink en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 23 de Abr. de 2016

Comentada:

el 23 de Abr. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by