+ Post New Thread
Results 1 to 6 of 6
  1. #1
    Full Member level 1
    Points: 1,810, Level: 9
    senaydud's Avatar
    Join Date
    Jun 2008
    Posts
    112
    Helped
    32 / 32
    Points
    1,810
    Level
    9

    Calling Simulink blocks using MATLAB code

    Hi people,

    There are Simulink blocks in the Matlab. How can I call them and use them in my *.m file. For instance "Phase-Locked Loop" block in the "Communications Blockset" is something that I need to call in my Matlab code.

    •   Alt4th July 2008, 23:31

      advertising

        
       

  2. #2
    Member level 2
    Points: 1,869, Level: 10

    Join Date
    Aug 2005
    Posts
    51
    Helped
    6 / 6
    Points
    1,869
    Level
    10

    Re: Calling Simulink blocks using MATLAB code

    With:

    sim('simulink_model_name');

    Note: no .mdl in the 'simulink_model_name'


    1 members found this post helpful.

    •   Alt23rd July 2008, 19:42

      advertising

        
       

  3. #3
    Full Member level 1
    Points: 1,810, Level: 9
    senaydud's Avatar
    Join Date
    Jun 2008
    Posts
    112
    Helped
    32 / 32
    Points
    1,810
    Level
    9

    Calling Simulink blocks using MATLAB code

    Thanks carl for your reply,
    You know there are some pre-defined blocks in the simulink which are not available as a Matlab function, such as the "PLL" block. I haven't designed any circuit using simulink and what I want to do is just to call these blocks in my *.m file.



    •   Alt23rd July 2008, 22:14

      advertising

        
       

  4. #4
    Member level 2
    Points: 1,869, Level: 10

    Join Date
    Aug 2005
    Posts
    51
    Helped
    6 / 6
    Points
    1,869
    Level
    10

    Re: Calling Simulink blocks using MATLAB code

    Then you just build a simulink model file with this pll block and simulink "Workspace" in/out ports, then call this model in your Matlab program as I indicated.


    1 members found this post helpful.

  5. #5
    Full Member level 1
    Points: 1,810, Level: 9
    senaydud's Avatar
    Join Date
    Jun 2008
    Posts
    112
    Helped
    32 / 32
    Points
    1,810
    Level
    9

    Calling Simulink blocks using MATLAB code

    That would work as a thing which may also mean it might be the only way to do it. thanks carl, that deserve a click on the help button ))



  6. #6
    Newbie level 1
    Points: 517, Level: 4

    Join Date
    Jan 2010
    Location
    kanyakumari
    Posts
    1
    Helped
    0 / 0
    Points
    517
    Level
    4

    Re: Calling Simulink blocks using MATLAB code

    hi i am clara..doing M.E project on SVM algorithm 4 a multilevel inverter...i dont have any idea regarding that project..plz can anyone help me..



+ Post New Thread
Please login