Matlab-常用数学函数
Xaero Chang
2008 年 2 月 9 日
这些网页的目的主要是为了让Matlab新手能在最短的时间内掌 握Matlab这个工具, 完成自己的任务, 成为一个proficient Matlab consumer, 而非Matlab professor.
|
本页面所涉及的操作已录制Matlab视频教程, 请从此处:
//JavaScript should be enabled to display URL of demo video pages!
var fName=window.location.pathname;
var fName=fName.substring(1+Math.max(fName.lastIndexOf('/'),fName.lastIndexOf('\\')),fName.length-4)
document.write('
观看Matlab操作演示录像');
观看Matlab操作演示录像
常用数学函数, 一般这些函数不仅可以对标量运算, 也可以对数组中每个元素运 算, 返回同样大小的结果数组.
第1部分 生成复数
Matlab中可以将复数当作普通数值进行操作, 生成复数的方法: f=1+2i, 即可, 注 意如果已有a=1,b=3,
c=a+b*i %从已有变量生成复数记得加乘号.
第2部分 三角函数
懒得翻译了, 如果看不懂这里的E文, 用google搜索个网络词典吧.
- acos, Inverse cosine; result in radians
- acosd, Inverse cosine; result in degrees
- acosh, Inverse hyperbolic cosine
- acot, Inverse cotangent; result in radians
- acotd, Inverse cotangent; result in degrees
- acoth, Inverse hyperbolic cotangent
- acsc, Inverse cosecant; result in radians
- acscd, Inverse cosecant; result in degrees
- acsch, Inverse hyperbolic cosecant
- asec, Inverse secant; result in radians
- asecd, Inverse secant; result in degrees
- asech, Inverse hyperbolic secant
- asin, Inverse sine; result in radians
- asind, Inverse sine; result in degrees
- asinh, Inverse hyperbolic sine
- atan, Inverse tangent; result in radians
- atan2, Four-quadrant inverse tangent
- atand, Inverse tangent; result in degrees
- atanh, Inverse hyperbolic tangent
- cos, Cosine of argument in radians
- cosd, Cosine ofo argument in degrees
- cosh, Hyperbolic cosine
- cot, Cotangent of argument in radians
- cotd, Cotangent of argument in degrees
- coth, Hyperbolic cotangent
- csc, Cosecant of argument in radians
- cscd, Cosecant of argument in degrees
- csch, Hyperbolic cosecant
- hypot, Square root of sum of squares
- sec, Secant of argument in radians
- secd, Secant of argument in degrees
- sech, Hyperbolic secant
- sin, Sine of argument in radians
- sind, Sine of argument in degrees
- sinh, Hyperbolic sine of argument in radians
- tan, Tangent of argument in radians
- tand, Tangent of argument in degrees
- tanh, Hyperbolic tangent
第3部分 指数函数等
- exp, 指数函数
- expm1, Compute exp(x)-1 accurately for small values of x
- log, 自然对数函数
- log10, 常用对数(10为底)
- log1p, Compute log(1+x) accurately for small values of x
- log2, Base 2 logarithm and dissect floating-point numbers into exponent and mantissa
- nextpow2, Next higher power of 2
- nthroot, Real nth root of real numbers
- pow2, Base 2 power and scale floating-point numbers
- reallog, Natural logarithm for nonnegative real arrays
- realpow, Array power for real-only output
第4部分 取整函数
- ceil, 向着∞取整
- fix, 截断取整
- floor, 向着-∞取整
- mod, Modulus after division
- round, 四舍五入取整
*博客内容为网友个人发布,仅代表博主个人观点,如有侵权请联系工作人员删除。