MATLAB POLYSPACE RELEASE NOTES Manuel d'utilisateur Page 191

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 240
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 190
Modeling Data
X = [ones(size(tdata)) cos((2* pi/12)*(tdata-7))];
s_coeffs = X\c3;
figure
plot(c3,'o-')
hold on
tfit = (1:0.01:24)';
yfit = [ones(size(tfit)) cos((2*pi/12)*(t fit- 7))]*s_coeffs;
plot(tfit,yfit,'r-','LineWidth',2)
legend('Data','Sinusoidal Fit','Location', 'NW' )
Use the MATLAB lscov function to compute statistics on the fit, such as
estimated standard e rrors of the coefficients and the mean squared error:
[s_coeffs,stdx,mse] = lscov(X,c3)
s_coeffs =
65.5833
5-21
Vue de la page 190
1 2 ... 186 187 188 189 190 191 192 193 194 195 196 ... 239 240

Commentaires sur ces manuels

Pas de commentaire