Professional Documents
Culture Documents
Lab #4
Giving v[m/s] and F[N] in Table 1, the system of equations can be formed to find the coefficients ai of the Equation,
ns
F soil = ai v
i=0
Variables
v1
3 v2 3
1 1 1
v1 v2 v5
v1
2 v2
v1
4 v2
2 v5
3 v5
4 v5
][ ] [ ]
a0 F1 a1 F = 2 a4 F5
MEC E 390
2
function soil(basefun) % ..; %Load data v and F ..; % Generate matrix A from input basefun % Therefore basefun has to be a function % that generates a matrix from input v(:) ..; % Calculate coefficients a(i) % by using Gausssian Elimination or \
...; %
MEC E 390
MEC E 390
MEC E 390
Finally, you can generate a similar function dozer.m that calculates the coefficients and plots the curve for the dozer. For Question 5, plot all curves along the entire range, i.e. use the same qplot for all curves.
MEC E 390
8