title: MatLab Want function to take in multiple values and output multiple values
body: <p>I have an equation r that I want to take in values from Ex and Vt. Ex and Vt give multiple values when run, but r does not. I need r to give values for each number in x1 and xL1.</p>
  
  <p>Thanks.</p>
  
  <pre><code>Es= 1.01911;
  Vab= 1.6;
  s= 75.5;
  
  x1= [93.5, 93.1, 92.0, 91.9, 92.2];
  xL1= [49.0, 46.2, 48.6, 46.3, 48.9];
  
  Ex= x1*(Vab/100);
  Vt= Es*(xL1/s);
  r=(20*(Ex-Vt))/Vt
  </code></pre>