How can we find function value f1, f2,.......f15? If function is defined by fi = Xi +3*Xi+1 - 4Xi+2 + Xi+3 and Xi=[2 5 -6 8 9 45 4 4 4 4 8 9 4 1 5]; i=1,2,......15.

How can we find function value f1, f2,.......f15? If function is defined by fi = Xi +3*Xi+1 - 4Xi+2 + Xi+3 and Xi=[2 5 -6 8 9 45 4 4 4 4 8 9 4 1 5]; i=1,2,......15.

6 Kommentare

You can only get f1,...,f12 (or you have values for X(-2), X(-1) and X(0)).
Best wishes
Torsten.
for k = 1:12
f(k) = X(k)+3*X(k+1)-4*X(k+2)+X(k+3);
end
Best wishes
Torsten.
X=[2 5 -6 8 9 45 4 4 4 4 8 9 4 1 5];
for k = 1:12
f(k) = X(k)+3*X(k+1)-4*X(k+2)+X(k+3);
end

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Mathematics finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 10 Feb. 2016

Kommentiert:

am 11 Feb. 2016

Community Treasure Hunt

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

Start Hunting!

Translated by