Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

function [ coefficient _ vector ] = func _ fit ( X , Y , type,basis,parameters ) if contains ( type , 'approximate' ) if

function [coefficient_vector]= func_fit(X,Y,type,basis,parameters)
if contains(type, 'approximate')
if contains(basis,'poly')
else
end
e
lse
if contains(basis,'poly')
x_transpose = X';
result = x_transpose * X;
results = result \ x_transpose * Y;
coefficient_vector = results;
return
else
X_trig =[sin(X), cos(X)];
result1= X_trig' * X_trig;
result1s = result1\(X_trig' * Y);
coefficient_vector = result1s;
return;
end
end
basis is poly or trig, type is approximate or interpolate. need help for approximate.
not vander or polyfit
matlab

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Richard T. Watson

6th Edition

1943153035, 978-1943153039

More Books

Students also viewed these Databases questions

Question

Define span of management or define span of control ?

Answered: 1 week ago

Question

What is meant by formal organisation ?

Answered: 1 week ago

Question

What is meant by staff authority ?

Answered: 1 week ago

Question

Discuss the various types of policies ?

Answered: 1 week ago

Question

Explain the function and purpose of the Job Level Table.

Answered: 1 week ago