title: How to format the values of the output variable of a function as a matrix, given that an input is an matrix in Octave
body: <p>I have a function:</p>
  <pre><code>int = input(&quot;Introduce the intensity: &quot;)
  wave = input(&quot;Introduce the wavelength: &quot;);
  e = input(&quot;Introduce e: &quot;);
  function [brighttemp] = brightness_temp_function(int, wave, e)
     A = 1.19 .* (10 .^ 8);
     B = 1.441 .* (10 .^ 4);
     brighttemp = sprintf(&quot;%.2f&quot;,(B ./ (wave .* (log (1 .+ ((e .* A) ./ (int .* (power(wave,5)))))))) .- 273.15);
     disp(brighttemp);
  endfunction
  [brighttemp] = brightness_temp_function(wave, e, int);`
  </code></pre>
  <p>When I enter a single value for each variable, it outputs a single answer for <code>brighttemp</code>. But when I enter in a vector for one of the variables, such as <code>[8, 9; 7, 8.5]</code> for the <code>int</code> variable and single values for the others, I get back an output like this for <code>brighttemp</code>: 20.727.812.924.3 instead of a vector similar in format to the vector inputted for the <code>int</code> variable, like this <code>[20.7, 27.8; 12.9, 24.3]</code> . What do I have to do to get an output like the latter vector?</p>