title: How can I change a Block parameter in Simulink with Serial Port?
body: <p>I am loading my Simulink Model to a <code>microprocessor</code>. After that I want to <code>change</code> a value of a <code>Block parameter</code>.</p>
  
  <p>In the picture below the data comes to <code>Matlab Function</code> block is coming from <code>Serial Port</code>. Now, appearently th incoming data is assigned to input <code>u</code> of Matlab Function block. In that Matlab Function block I want to write a code that changes , for example, coefficient of <code>s</code> in the Transfer Fcn block. Or it can change any other parameter you can give in code hypothetically.</p>
  
  <p>If anybody can give me any solution that would be ver much appreaciated!. Thank you in advance.</p>
  
  <p><img src="https://i.stack.imgur.com/6NnFJ.png" alt="enter image description here"></p>