% create matrix A for
% f = c₀ + c₁sin(t) + c₂cos(t) + c₃sin(2t) + c₄cos(2t)
%A =
Tis is the question that I should complete.
f (t) = a +b t +c t ^2
A = [t .^0 t.^1 t .^2]
And this is the example that my proffessor gave me. But when I solve the question according to the exmaple it gives this error '' Check matrix A
The submission must contain a variable named A. '' Can anyone help me with that? Thanks for your time.

댓글 수: 1

KSSV
KSSV 2022년 6월 21일
Show us the full example, which threw this error.

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

 채택된 답변

Torsten
Torsten 2022년 6월 21일

0 개 추천

A = [ones(numel(t),1),sin(t),cos(t),sin(2*t),cos(2*t)]

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Mathematics에 대해 자세히 알아보기

태그

질문:

2022년 6월 21일

답변:

2022년 6월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by