In this program I upload the file "dollarkurs09_10", which is a one column text file containing the dollar exchange rate. The code which I've written is:
clear all, close all
y = dollarkurs09_10(:,1);
x = 1: length(y);
%Now I want to adapt a linear model f(x) = c1+c2*x to the exchange rate.
A = [ones(size(x)) x];
c = Ay; [color=Red]%This is where it goes wrong[/color]
f = @(x)
tt = linspace(x(1),x(end));
Can't figure out what i did wrong here. Anyone willing to give me a helping hand?