matlab函数编写时候开方怎么表达啊

来源:百度知道 编辑:UC知道 时间:2024/05/24 01:09:12
我想编写一个函数其中是一个数的0.8次幂!我该怎么写呢?我用乘方的那个也不行啊!请帮帮忙!

我用乘方的那个也不行啊!——这是不可能的
.^ Array power.
Z = X.^Y denotes element-by-element powers. X and Y
must have the same dimensions unless one is a scalar.
A scalar can operate into anything.

C = POWER(A,B) is called for the syntax 'A .^ B' when A or B is an
object.

x.^0.8