How to get Matlab codes in Simulink. ?

I hav a matlab function(m file). I want to get this in Simulink to see the output in the scope. The program and its output is attached . Pls help me in getting this signal in Simulink (output should come in scope).

4 Comments

You forgot to attach the files
sorry. Here is the attached file
Actually, its the same. Only thing I have added the codes here. Moreover, I have studied those links what you have given me and also tried to implement in my program, but still getting errors. I just need the pulse which is in the matlab graph to be shown in the Simulink Scope.

Answers (1)

You can use a MATLAB Function Block

This question is closed.

Tags

No tags entered yet.

Asked:

on 3 Oct 2015

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!