Matlab基本函数-log函数
来源:互联网 发布:珠宝批发软件 编辑:程序博客网 时间:2024/04/18 03:49
1、log函数:求自然对数
2、用法说明
y = log(x) 函数对数组x的元素逐个进行以e为底的对数运算。y = a+b*i,有log(y) = log(abs(y))+i*atan2(b,a)
3、举例说明
>> x = 10x = 10>> y = log(x)y = 2.3026>> x = 1:10x = 1 2 3 4 5 6 7 8 9 10>> y = log(x)y = 0 0.6931 1.0986 1.3863 1.6094 1.7918 1.9459 2.0794 2.1972 2.3026>> x = [34-45i 12+23i 56+78i 26.12-45.89i]x = 34.0000 -45.0000i 12.0000 +23.0000i 56.0000 +78.0000i 26.1200 -45.8900i>> y = log(x)y = 4.0325 - 0.9237i 3.2559 + 1.0899i 4.5646 + 0.9481i 3.9666 - 1.0533i4、附录
>> help log log Natural logarithm. log(X) is the natural logarithm of the elements of X. Complex results are produced if X is not positive. See also log1p, log2, log10, exp, logm, reallog. Overloaded methods: codistributed/log gpuArray/log fints/log designdev/log Reference page in Help browser doc log
0 0
- Matlab基本函数-log函数
- Matlab基本函数-ceil函数
- Matlab基本函数-colormap函数
- Matlab基本函数-compass函数
- Matlab基本函数-complex函数
- Matlab基本函数-conj函数
- Matlab基本函数-contrast函数
- Matlab基本函数-cylinder函数
- Matlab基本函数-disp函数
- Matlab基本函数-exp函数
- Matlab基本函数-expm函数
- Matlab基本函数-feather函数
- Matlab基本函数-fix函数
- Matlab基本函数-floor函数
- Matlab基本函数-format函数
- Matlab基本函数-ginput函数
- Matlab基本函数-hidden函数
- Matlab基本函数-imag函数
- 三元组存储会取代关系型数据库吗?
- Android开发者必知的开发资源
- Permutation Sequence 求第k个的排列序列 @LeetCode
- Linq学习__01__解释基本概念
- 数据库基础<二>关系数据库
- Matlab基本函数-log函数
- ubuntu忘记root密码解决
- <文摘>在线编程网站
- asp.net Get和Post的使用
- shell学习经典
- 2012 蓝桥杯全国软件设计大赛 决赛预选赛 04题 (深度搜索)
- VS2008中编译运行MFC应用程序时,出现无法启动程序,因为计算机中丢失mfc90ud.dll的解决方案
- 基于路网的最佳位置选择
- 本人编程常见错误