Clear Filters
Clear Filters

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

57 views (last 30 days)
Jn(icounter)=sqrt(pow((Lxn_dash),2)+pow((mxn_dash),2)+pow((nxn_dash),2)) Lxn_dash to the power 2??

Answers (2)

Torsten
Torsten on 5 Oct 2018
Jn(icounter) = sqrt(Lxn_dash^2 + mxn_dash^2 + nxn_dash^2)

KSSV
KSSV on 5 Oct 2018
Edited: KSSV on 5 Oct 2018
Lxn_dash^2
if your Lxn_dash is an array..you have to follow element by element power
Lxn_dash.^2

Categories

Find more on MATLAB in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!