Task
1:
A composite machine
element consists of an elastoplastic tube with a cylindrical core
made of a different elastoplastic material. The force - elongation
curve for the composite element is given by
Here
a is related to the length of the element and it is about 1 mm.
Write
a MATLAB program ( .m file) which calculates and displays the value
of the force for a given value of delta and a. Linear interpolation
must be used to calculate the force.
Task
2: Write a MATLAB program which reads an array of numbers and
calculates how many of the numbers are negative and how many are
in between 3.4 and 6.8.
Task
3: Do task 1 again, but this time use a MATLAB user defined
function to calculate the force.
Include some lines of HELP for the function.
Task
4: Solve both by hand and by MATLAB the following system of
equations:
-x1
+ x2 –3 x4 = 4
x1
+ 3 x3 + x4 = 0
x2
– x3 – x4 = 3
3 x1
+ x3 + 2 x4 = 1
|