title: Matlab Undefined function or method 'C' for input arguments of type 'double'
body: <pre><code>function simps()
  A=[0,0];
  B=[0,0]; 
  set_param('circuit/LINE2','Capacitance',num2str(C(1)))
          sim('circuit')
      B=[Real,Reactive];
          A=[A;B];    
  end
  </code></pre>
  
  <p><code>C</code> is a matrix. It contains 10 variables. Like 1,10,50,100 random.It is in uF.
  <code>circuit</code> is name of file
  <code>Real Reactive</code> are the <code>to workspace</code> name.
  <code>LINE2</code> is the name of the RLC branch. RLC branch contains only capacitance.</p>
  
  <p>I am getting error </p>
  
  <blockquote>
    <p>"Undefined function or method 'C' for input arguments of type
    'double'. "</p>
  </blockquote>
  
  <p>I have searched stackoverflow, everybody talks about directory problem. But all my files are inside RUN directory.</p>
  
  <p>I did </p>
  
  <pre><code>&gt;&gt; which C
  </code></pre>
  
  <p>It returned</p>
  
  <pre><code>C is a variable.
  </code></pre>
  
  <p>So I think the C is in directory path of matlab. So where is the error?</p>