Plot function fit using matlab

1 view (last 30 days)
WT
WT on 5 Apr 2015
Answered: dpb on 5 Apr 2015
Hi, May I know how can I plot targets and outputs on the same graph, showing the errors? plotfit(net,Inputs,Target) only allows plotting of single input problems. How can i plot if i have more than one input? Thank You for your help

Answers (1)

dpb
dpb on 5 Apr 2015
See
doc plot
for details and examples under the section 'Graphics/2-D and 3-D Plots' for Line Plots of Matrix Data
In short, a 2D array of y-values is considered separate variables for each column and the plotting is automagic. It only takes that the length of each is the same but this is also easily worked around by filling shorter areas with NaN which are ignored. Alternatively, use
hold on
and you can add subsequent information to the axes without losing the previously drawn. There are examples for this as well...

Categories

Find more on Line Plots in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!