Thông tin tài liệu:
Basic elements of program
Input
– Initialize, define or assign numerical values to
variables.
Set of command expressions
– Operations applied to input variables that lead
to the desired result.
Output
– Display (graphically or numerically) result.An example of technical computinAn example of technical computing
Let us consider using the hyperbolic tangent
to model a downhill
section of a snowboard
or snow ski facility.
Let us first examine the hyperbolic tangent
function by executing the command:
ezplot( ‘tanh(x)’ )...
Nội dung trích xuất từ tài liệu:
Essential MATLAB for Engineers and Scientists-Lecture 3: Creating Mfiles