Help with the below question
1 回表示 (過去 30 日間)
古いコメントを表示
x = -10:0.1:10;
y = [1 6 0.03 0.08 10]';
A = 23 * (atan((0.005 + y)./x.^2));
B = diff(A,1,2)/0.1;
plot(x(1:end-1),B')
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/946849/image.png)
How to get the maximum value in each of the obtained plots for the mentioned y values?
0 件のコメント
回答 (2 件)
Sam Chak
2022 年 3 月 30 日
Hi @Amy Topaz
I think you can use the max() function.
max(B(1,:))
max(B(2,:))
max(B(3,:))
max(B(4,:))
max(B(5,:))
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!