How can I solve this question?

조회 수: 1 (최근 30일)
Alice Zurock
Alice Zurock 2020년 5월 31일
댓글: Alice Zurock 2020년 5월 31일
------------------------------------------------------------------------------------------------------------------------------------
Example 12.1 Nonlinear Model:
------------------------------------------------------------------------------------------------------------------------------------
Eq. 12.19& Eq. 12.20:
------------------------------------------------------------------------------------------------------------------------------------
Eq. 12.22& Eq. 12.23:
  댓글 수: 2
KSSV
KSSV 2020년 5월 31일
What have you attempted?
Alice Zurock
Alice Zurock 2020년 5월 31일
clc; clear; close all; format compact; format long eng;
rng('default');
% true signal curve
x = (0:.1e-4:2).';
y = .2 * ones(length(x),1) - x + .9 * x.^2 + .7 * x.^3 - .2 * x.^5;
% plot the true curve
%figure; plot(x1,y1,'b');
% training samples (20 or 500)
N = 20;
% sample interval [a b]
a = 0; b = 2;
% generate samples
x1 = (a : b/N : b - b/N).';
% noise generation
sigma_n = .05;
n = sqrt(sigma_n) .* randn(N,1);
% use the true theta
theta_true = [.2; -1; .9; .7; -.2];
% or a random one
theta_dstrbd = [-0.004; -10.54; 0.465; 0.087; -.093];
l = length(theta_true);
% compute the measurement matrix
Phi = [ones(N,1) x1 x1.^2 x1.^3 x1.^5];

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Classification에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by