elementwise power

more efficient than MATLAB's power function

You are now following this Submission

pwr(x,p) is equivalent to x.^p, but more efficient for scalar, integer or half-integer p. (x is assumed to be non-sparse.)

Cite As

Kenneth Johnson (2026). elementwise power (https://www.mathworks.com/matlabcentral/fileexchange/44574-elementwise-power), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0