matlab - Plot output of second return variable with fplot -
suppose have multi-variate function myfun
function [y1,...,yn] = myfun(x1,...,xm)
which plot using fplot, keeping 1 variables fixed, example this:
fplot('myfun(0,0,0,x,0,0,0,...,0)',[0,10]);
this creates plot of y1 default. how can fplot show graph of y2?
from fplot
documentation:
if function returns more 1 value given x, y matrix columns contain each component of f(x).
fplot
display first output of given function. if put outputs in matrix form (a column each output value) fplot
display of them in second example in documentation. if want use output only, have create duplicate or wrapper function output.
Comments
Post a Comment