lass="codeinput">figure;
hold <span class="string">on</span>;
plot(Up,<span class="string">'b+'</span>);
plot(up_predict,<span class="string">'r*'</span>);
legend(<span class="string">'original up'</span>,<span class="string">'predict up'</span>,2);
title(<span class="string">'original vs predict'</span>,<span class="string">'FontSize'</span>,12);
grid <span class="string">on</span>;
figure;
error = up_predict - Up';
plot(error,<span class="string">'ro'</span>);
title(<span class="string">'&#35823;&#24046;(