Available under Creative Commons-ShareAlike 4.0 International License.
Notice that the script we have created above (Example 4.1) is not interactive and computes the total volume only for the variables defined in the m-file. To make this script interactive we will make some changes to the existing AcetyleneBottle.m by adding input function and save it as AcetyleneBottleInteractive.m.
The syntax for input is as follows:
userResponse = input('prompt')
- 瀏覽次數:1235