You are on page 1of 1

Introduction to Computer Programming (SETK 1533-01) – UTMSPACE 22/23-2)

Assignment 2 – CO1 (25 March 2023) Norsyapiah Binti Syofiadi


Name : ________________________________

Data of an experiment to measure the tensile strength y of a balloon is shown in Table 1. When
the thickness, z of the balloon is known, the tensile strength, y can be calculated by the
following equation:

A solution using MATLAB commands to determine the tensile strength in each test, and the
average from all tests, y_ave was proposed as in Figure 1. Complete the solution with the
correct commands.

Table 1

Test 1 2 3 4 5 6
Thickness, z
1 3 5 7 9 11
(mm)

[1 3 5 7 9 11]
>> z = .....................................................................................................................................

[z.^3+5.*z]./[(4.*z.^2)-10]
>> y = ....................................................................................................................................

y =

-1.0000 1.6154 1.6667 2.0323 2.4650 2.9241


mean (y)
>> y_ave = .............................................................................................................................

y_ave =

1.6172

Figure 1

You might also like