This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: COLLEGE OF ENGINEERING THE UNIVERSITY OF TEXAS AT AUSTIN Department of Chemical Engineering•Austin, Texas 78712-1062•(512)471-5238•FAX(512)471-7060 ChE 210 Homework 1 Due: Wednesday, September 15 Simple Scripts In class we are examining how to write simple MATLAB scripts to solve problems. We’ve seen the very basic use of the input and fprintf functions to handle input and output and solved problems in a simple sequence of assignment statements. You are to write working MATLAB scripts (using m-files) to solve these problems and run these scripts for the cases listed in each problem. 1. The equation that is used to determine the volume of a hollow sphere is ( 29 3 3 4 3 o i V r r π =- Write a script that asks the user for the outer, r o , and inner, r i radius and then computes the volume. The script should then print all quantities (r o , r i , and V) on separate lines with each quantity identified by text. Maybe something like the following: Outer radius: 5.0 Inner radius : 4.0 4....
View Full Document
- Fall '08
- Chemical Engineering, Input/output