# arrange equation results from min to max to use after

조회 수: 1(최근 30일)
firrou bouteflika 2021년 6월 25일
댓글: Bhaskar R 2021년 6월 26일
t = [2993;3975.9;5063;6150;6919;8192.7;8862;10240.9;11488;12409.63;13545]
f = @(t) (2.2/9500).*((t/9500).^1.2).*exp(-((t/9500).^2.2))
g = @(t) 1-exp(-((t/9500).^2.2))
i want f(t) to be arranged from min to max to then do f(t)-g(t)
0.32398874
0.31369048
0.31787694
....
...

댓글을 달려면 로그인하십시오.

### 채택된 답변

t = [2993;3975.9;5063;6150;6919;8192.7;8862;10240.9;11488;12409.63;13545]
t = 11×1
1.0e+04 * 0.2993 0.3976 0.5063 0.6150 0.6919 0.8193 0.8862 1.0241 1.1488 1.2410
f = @(t) (2.2/9500).*((t/9500).^1.2).*exp(-((t/9500).^2.2))
f = function_handle with value:
@(t)(2.2/9500).*((t/9500).^1.2).*exp(-((t/9500).^2.2))
g = @(t) 1-exp(-((t/9500).^2.2))
g = function_handle with value:
@(t)1-exp(-((t/9500).^2.2))
sort(f(t))-g(t)
ans = 11×1
-0.0757 -0.1368 -0.2215 -0.3189 -0.3921 -0.5142 -0.5760 -0.6925 -0.7810 -0.8346
##### 댓글 수: 5표시숨기기 이전 댓글 수: 4
It's my pleassure :-)

댓글을 달려면 로그인하십시오.

### 범주

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

R2012a

### Community Treasure Hunt

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

Start Hunting!

Translated by