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

Jn(icounter)=sqrt(pow((Lxn_dash),2)+pow((mxn_dash),2)+pow((nxn_dash),2)) Lxn_dash to the power 2??

Answers (2)

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 Get Started with MATLAB in Help Center and File Exchange

Tags

Asked:

on 5 Oct 2018

Edited:

on 5 Oct 2018

Community Treasure Hunt

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

Start Hunting!