Finding the function of the supremum
42 ビュー (過去 30 日間)
古いコメントを表示
Hello.I have a function I want to calculate its supremum. The function is below.I don't know how to do this in Matlab.Please help me.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1140575/image.png)
0 件のコメント
採用された回答
Torsten
2022 年 9 月 29 日
編集済み: Torsten
2022 年 9 月 29 日
sup-norm is a theoretical concept.
There is no such function in MATLAB to calculate it for a general function.
In the case above you could use
syms t
f = (1-exp(-t))*heaviside(t);
limit(abs(f),t,Inf)
7 件のコメント
Walter Roberson
2022 年 10 月 1 日
or consider a Gaussian. The sup is at the peak but the limit at infinity is 0.
その他の回答 (2 件)
Sam Chak
2022 年 9 月 30 日
I'm not sure if the following is what you want. But this 1st-order transfer function (taking the Laplace transform)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1140725/image.png)
produces the same step response as the given Continuous-Time Signal. So the following computes the ∞-Norm of the linear system, instead of the signal.
Also worth checking out these:
t = linspace(0, 10, 1001);
x = 1 - exp(-t);
G = tf(1, [1 1])
subplot(211)
plot(t, x), grid on, xlabel('t'), title('Continuous-Time Signal')
subplot(212)
step(G, 10), grid on, xlabel('t'), title('Step Response of Transfer Function')
[ninf,fpeak] = norm(G, inf)
Osmar Tormena Júnior
2023 年 3 月 30 日
Following p-norm definition, the supremum may be defined as:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1340504/image.png)
Which may be computed by
Bx = limit((int(abs(x)^p, dummy, -Inf, Inf))^(1/p), p, Inf);
for a suitable dummy integration variable.
Alas, the solution appears to be beyond the Toolbox analytical capability. It fails for common signals like constants, unit step, etc. Even when it doesn't fail, it does not return the final result — although it still works with isfinite() function to test if
. Really, the only kind of signal this has worked out is a gaussian.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1340509/image.png)
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Arithmetic Operations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!