Sei sulla pagina 1di 1

Instructions to Run Octave Functions

1. Copy the files to a folder which can be located easily. For example:

‘C:\NumericalMethods\Lab02\’

2. Change the working directory to the same folder you created at first step. Use cd command
for this purpose:

cd ‘C:\NumericalMethods\Lab02’

3. If we have such a function p1a(g,m,cd,tf) we need supply the needed parameter at function
call:

𝑔 = 9.8
𝑚 = 68.1
𝑐𝑑 = 12.5
𝑡𝑓 = 2

4. Finally call the function and get the results:

𝑝1𝑎(𝑔, 𝑚, 𝑐𝑑, 𝑡𝑓)

Potrebbero piacerti anche