title: Simulink: How does one assign a double to a constant in a subsystem through the mask?
body: <p>This is a slightly long-winded problem, but should be easy to follow along.</p>
  
  <p><strong>End goal</strong>: Input a 'double' vector into a C++ S Function by assigning it to a Constant.</p>
  
  <p><strong>Starting point</strong>: A function within the Dialog Callback of my masked subsystem returns the double vector that I need.</p>
  
  <p><strong>Steps in the middle</strong>: So I have a double vector as an input, I need a double vector as an output, but I cannot pass the vector directly, because <code>set_param</code> requires that I pass the value as a string.</p>
  
  <p><strong>Problem</strong>: What I tried is this: <code>set_param(gcb,'refNameArray',num2str(refName));</code></p>
  
  <p>where, </p>
  
  <ul>
  <li>gcb (correctly) returns the block from within which I am doing
  everything. </li>
  <li>refNameArray is the parameter which needs to be assigned
  the double vector </li>
  <li>refName is the vector, in 'double' form, that I
  have available within the dialog callback of the mask.</li>
  </ul>
  
  <p>I use num2str because I cannot directly assign a vector, I must input it as a string.
  But, even using num2str, I get an error saying <code>Invalid Setting in Block &lt;blockName&gt; for parameter 'Value'</code>.</p>
  
  <p>Any suggestions?</p>