How to use "raise to the power" function in matlab
Show older comments
Jn(icounter)=sqrt(pow((Lxn_dash),2)+pow((mxn_dash),2)+pow((nxn_dash),2)) Lxn_dash to the power 2??
Answers (2)
Torsten
on 5 Oct 2018
Jn(icounter) = sqrt(Lxn_dash^2 + mxn_dash^2 + nxn_dash^2)
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
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!