How to set the initial value of a inport of a SIMULINK block?

Discussion in 'MATLAB' started by Li Wenkai, Dec 7, 2005.

  1. Li Wenkai

    Li Wenkai Guest

    I need to set the initial value (e.g. 2.3) of the inport of a
    SIMULINK block. Can I use set_param to do this?
    i.e.:

    set_param('gcb/PortName','????','Initial Value')

    "gcb" is the block name

    Which property should I use?

    Thank you very much!
     
    Li Wenkai, Dec 7, 2005
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.