I suggest that instead of using f = str2func(['@(x)' vectorize(f)]); that you use f = matlabFunction(f); However, you could just comment out all of your handling of f, as you never use f after you make it into a function handle. You have z(t)=integral(y,-t,t); At this point your y is a symbolic variable. integral() cannot be applied to symbolic variables: you would need to use int(y, -t, t) -- which is a value you can easily predict will be 0, since the integral of y with respect to y over y = a to y = b is 1/2 b^2 - 1/2 a^2 and with a = -t and b = -t that is going to be 1/2 t^2 - 1/2 (-t)^2 which is going to be 0. Answer from Walter Roberson on mathworks.com
🌐
MathWorks
mathworks.com › matlab › mathematics › elementary math › exponents and logarithms
Powers and Exponentials - MATLAB & Simulink
For example, calculate A.^(1/3). ... BB. The function sqrtm(A) computes A^(1/2) by a more accurate algorithm. The m in sqrtm distinguishes this function from sqrt(A), which, like A.^(1/2), does its job element-by-element. ... In addition to raising a matrix to a power, you also can raise a scalar to the power of a matrix. ... When you raise a scalar to the power of a matrix, MATLAB uses the eigenvalues and eigenvectors of the matrix to calculate the matrix power.
Discussions

Calculating energy and power of a signal
Calculating energy and power of a signal. Learn more about energy Symbolic Math Toolbox More on mathworks.com
🌐 mathworks.com
2
0
March 18, 2018
How do I calculate power for each signal?
How do I calculate power for each signal?. Learn more about audio, power More on mathworks.com
🌐 mathworks.com
2
0
April 28, 2021
Complex Power Calculation
The measured curves look more or less like this I have data for current and voltage at discrete time steps. The Signals are almost square shape and… More on reddit.com
🌐 r/matlab
3
3
September 25, 2023
how to calculate power of a matrix
I have just started looking at this, so it may be a very simple task to do. I have a vector of M elements, each element is a matrix 2x2 where the matrix elements A are complex number (real and i... More on mathworks.com
🌐 mathworks.com
2
0
October 2, 2012
🌐
MathWorks
mathworks.com › matlabcentral › answers › 748402-power-calculation-from-voltage-and-current-waveforms
Power calculation from Voltage and current waveforms - MATLAB Answers - MATLAB Central
February 17, 2021 - Hi to everybody! I'm trying to calculate active and reactive power starts from current and voltage waveforms. To do that i've prepared a simulink model and a matlab script, i'll attached to this ...
🌐
MathWorks
mathworks.com › matlab › mathematics › linear algebra
mpower - Matrix power - MATLAB
The calculation uses an eigenvalue decomposition. Operands with an integer data type cannot be complex. Data Types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | logical | char Complex Number Support: Yes · MATLAB® computes X^(-1) and inv(X) in the same ...
🌐
MathWorks
mathworks.com › signal processing toolbox › spectral analysis › spectral estimation
Measure the Power of a Signal - MATLAB & Simulink
T=3×4 table Freqs Power Percent inDB _____ _______ _______ _______ Fundamental 60 1.5777 31.788 1.9804 First 120 0.13141 2.6476 -8.8137 Second 180 0.04672 0.9413 -13.305 ... Run the command by entering it in the MATLAB Command Window.
🌐
MathWorks
mathworks.com › simscape electrical › control › measurements
Power Measurement - Calculate single-phase real and reactive power - Simulink
Specify a vector of all frequency components to include in the power output using the Harmonic numbers parameter: To output the DC component, specify 0. To output the component corresponding to the fundamental frequency, specify 1. To output components corresponding to higher-order harmonics, specify n > 1. For each specified harmonic k, the block calculates the real power Pk and reactive power Qk from the phasor equation:
Find elsewhere
🌐
Reddit
reddit.com › r/matlab › complex power calculation
r/matlab on Reddit: Complex Power Calculation
September 25, 2023 - to complete the definition of periodic signal power a concept called Deformed Power can be used but its not that common. look it up if you need! ... Also when you use a calculator to solve a problem but the answer isn’t one of the multiple choice options so you just pick the closest one.
🌐
MathWorks
mathworks.com › matlabcentral › answers › 49655-how-to-calculate-power-of-a-matrix
how to calculate power of a matrix - MATLAB Answers - MATLAB Central
October 2, 2012 - I have just started looking at this, so it may be a very simple task to do. I have a vector of M elements, each element is a matrix 2x2 where the matrix elements A are complex number (real and i...
🌐
MathWorks
mathworks.com › matlab › mathematics › elementary math › arithmetic operations
power - Element-wise power - MATLAB
Create a 1-by-2 row vector and a 3-by-1 column vector and raise the row vector to the power of the column vector. ... Calculate the roots of -1 to the 1/3 power.
🌐
MATLAB Central
mathworks.com › matlabcentral › cody › problems › 1453-calculate-engine-power
Calculate Engine Power - MATLAB Cody - MATLAB Central
MATLAB Answers · File Exchange · Cody · AI Chat Playground · Discussions · Contests · Blogs · More · Communities · Treasure Hunt · People · Community Advisors · Virtual Badges · About · Created by Chintan · × · Like (6) Solve Later · Calculate Engine Power (P) in W given the values of Torque(M) in Nm and Engine Speed(n) in rps ·
🌐
Gaussianwaves
gaussianwaves.com › 2013 › 12 › computation-of-power-of-a-signal-in-matlab-simulation-and-verification
Compute signal power in Matlab – GaussianWaves
December 24, 2013 - Since SNR is a ratio, Signal power and noise power can be different for 64/16 QAM packets but maintaining the same SNR. Thus adding signal and noise power for both the case will give different result. Reply ... [ x ,scale ]=Modulation(coded_data,mt);%not built in fn in matlab pkt64=x*scale ; %for modulation normalization info64=awgn(pkt64 , snr , ‘measured’) end
🌐
YouTube
youtube.com › pmrf teachings
Calculating Energy & Power of a Signal Using MATLAB - YouTube
AboutPressCopyrightContact usCreatorsAdvertiseDevelopersTermsPrivacyPolicy & SafetyHow YouTube worksTest new features · © 2025 Google LLC
Published   September 14, 2021
Views   6K
🌐
MathWorks
mathworks.com › matlabcentral › fileexchange › 2696-poweraovi
powerAOVI - File Exchange - MATLAB Central
July 7, 2008 - Calculates the post-hoc statistical power of a performed ANOVA test Model I (fixed-effects). Follow · 0.0 (0) 3K Downloads · Updated 7 Jul 2008 · View License · × · Share · Open in MATLAB Online · Download · × · Open in File Exchange ...
🌐
MathWorks
mathworks.com › matlab › mathematics › fourier analysis and filtering
nextpow2 - Exponent of next higher power of 2 - MATLAB
Use the nextpow2 function to increase the performance of fft when the length of a signal is not a power of 2. Create a 1-D vector containing 8191 sample values. ... Calculate the next power of 2 higher than 8191.
🌐
MathWorks
mathworks.com › statistics and machine learning toolbox › probability distributions and hypothesis tests › hypothesis tests
Selecting a Sample Size - MATLAB & Simulink Example
This example shows how to determine the number of samples or observations needed to carry out a statistical test. It illustrates sample size calculations for a simple problem, then shows how to use the sampsizepwr function to compute power and sample size for two more realistic problems.