7979;&#32467;&#26524;&#20998;&#26512;<a name="8"></a></h2><pre class="codeinput">figure;
hold <span class="string">on</span>;
plot(R,<span class="string">'b+'</span>);
plot(r_predict,<span class="string">'r*'</span>);
legend(<span class="string">'original r'</span>,<span class="string">'predict r'</span>,2);
title(<span class="string">'original vs predict'</span>,<span class="string">'FontSize'</span>,12);
grid <span class="string">on</span>;
figure;
error = r_predict - R';
plot(error,<span class="string">'