为什么我的matlab7.0不能使用sqrt函数
答案:2 悬赏:10
解决时间 2021-03-08 19:06
- 提问者网友:挣扎重来
- 2021-03-08 02:00
为什么我的matlab7.0不能使用sqrt函数
最佳答案
- 二级知识专家网友:猖狂的痴情人
- 2021-03-08 02:12
是计算平方根的函数,比如sqrt(4)=2等等。可以是一个数,也可以是一个矩阵。
官方解释:B = sqrt(X) returns thesquare root of each element of the array X. Forthe elements of X that are negative or complex, sqrt(X) producescomplex results.
举例说明:
>> sqrt(2)
ans =
1.4142
>> sqrt(rand(4))
ans =
0.8302 0.4785 0.7337 0.3266
0.8650 0.9557 0.9981 0.9808
0.6712 0.3904 0.2796 0.0681
0.2895 0.9087 0.6653 0.8803
>> sqrt(4)
ans =
2
官方解释:B = sqrt(X) returns thesquare root of each element of the array X. Forthe elements of X that are negative or complex, sqrt(X) producescomplex results.
举例说明:
>> sqrt(2)
ans =
1.4142
>> sqrt(rand(4))
ans =
0.8302 0.4785 0.7337 0.3266
0.8650 0.9557 0.9981 0.9808
0.6712 0.3904 0.2796 0.0681
0.2895 0.9087 0.6653 0.8803
>> sqrt(4)
ans =
2
全部回答
- 1楼网友:零负荷的放任
- 2021-03-08 02:33
你的电脑是cpu是amd的吧? 很常见的问题
amd的机器安装好matlab后打开自动关闭 matlab要用到cpu的数学计算模块,而matlab默认的是intel的cpu,所以amd的cpu一般都会遇到安装好后打开自动关闭的问题。 解决办法: 先确认安装好后(假如安装在d盘) 在此路径下d:\matlab7\bin\win32有一个叫做atlas_athlon.dll的文件。 然后在我的电脑上右击点”属性”,再在”高级”中点”环境变量”,在”系统变量”中点击”新建” 输入以下信息: 变量名:blas_version 变量址:\matlab7\bin\win32\atlas_athlon.dll 点确定就可以了。 另外说一下,matlab的安装目录必须是英文的。
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯