plot matlab function handle that outputs vector <p>So I have a matlab function I wrote that takes in a number and returns an array of numbers (transposed). I need to plot this function. I was trying to use fplot but it was giving me errors:</p> <pre><code>Error in fplot (line 105) x = xmin+minstep; y(2,:) = feval(fun,x,args{4:end}); </code></pre> <p>Am I using the wrong plot function?</p> <p>the function solves an equation of motion problem. I have this diff eq:</p> <pre><code>Mx'' + Cx'+ Kx = 0 </code></pre> <p>where M, C, and K are 4x4 matrices and my function solves the general solution and outputs a vector of 4 values.</p>