fortran
Fortran representation of symbolic expression
Syntax
Description
fortran(
returns Fortran code for the symbolic expressionf
)f
.
fortran(
uses additional options specified by one or moref
,Name,Value
)Name,Value
pair arguments.
Examples
Input Arguments
Tips
MATLAB®is left-associative while Fortran is right-associative. If ambiguity exists in an expression, the
fortran
function must follow MATLAB to create an equivalent representation. For example,fortran
representsa^b^c
in MATLAB as(a**b)**c
in Fortran.