photo

Emilio Ortega


Last seen: ungefär 4 år ago Active since 2017

Followers: 0   Following: 0

Statistics

Feeds

View by

Question


How can I plot this code using the "plot" function?
x = [-1 0 1 2]; y = [1 2 -1 2]; P = cod_lagrange(x,y); %los coef aparecen de la forma Ax^n + Bx^n-1 + ... + D pretty(...

nästan 7 år ago | 1 answer | 0

1

answer

Question


assign the result of inverse matrix to vector
A= [4 1 0 0; 1 3 0.5 0; 0 0.5 2 0.5; 0 0 0.5 3]; b= [7.2 -6.6 3.6 3]'; [m1,m2,m3,m4]' = inv(A)*b ; <- here is the error ...

nästan 7 år ago | 1 answer | 0

1

answer