Plot function fit using matlab

1 次查看(过去 30 天)
WT
WT 2015-4-5
回答: dpb 2015-4-5
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

回答(1 个)

dpb
dpb 2015-4-5
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...

类别

Help CenterFile Exchange 中查找有关 Line Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by