2nd Order Newtonian Formulation
Afficher commentaires plus anciens
X = I; % independent variable
Y = J'; % have to transpose the vector
a = length(X) % # of data points given
A - zeros(a) % creates an empty matrix
for c = 1:a
for r =1:a
if c == 1
A(r,c) = 1;
elseif c <= r
A(r,c)
end
end
end
b = A\Y
disp(A)
disp(Y)
disp(b)
_______________________________________________________________________________________________________________________________________
You don't get values for I and J, my teacher only said which one is the independent variable and which one is the dependent variable, so I am confused how you can get real number out of this code.
Réponses (0)
Catégories
En savoir plus sur Vector Volume Data dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!