How to use "raise to the power" function in matlab

57 次查看(过去 30 天)
Jn(icounter)=sqrt(pow((Lxn_dash),2)+pow((mxn_dash),2)+pow((nxn_dash),2)) Lxn_dash to the power 2??

回答(2 个)

Torsten
Torsten 2018-10-5
Jn(icounter) = sqrt(Lxn_dash^2 + mxn_dash^2 + nxn_dash^2)

KSSV
KSSV 2018-10-5
编辑:KSSV 2018-10-5
Lxn_dash^2
if your Lxn_dash is an array..you have to follow element by element power
Lxn_dash.^2

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by