How do I plot and return the values of multiple intersections between a function and zero?
古いコメントを表示
Hello,
I need to find the intersection between the det_a function and zero, return the values, and plot the intersections. Here's what I did so far
x = linspace(0,18,1000);
det_a = sin(x).*cosh(x) - cos(x).*sinh(x);
zr = zeros(size(x));
figure
plot(x,det_a,x,zr,'--')
grid on
ylim([-10 10])
xlabel('\betal')
The plot can be seen here:

I haven't found any easy method of doing this, I've tried using the find and intersect functions but they only return one value. Any help would be appreciated, thanks in advance!
採用された回答
その他の回答 (1 件)
KSSV
2021 年 10 月 20 日
0 投票
You can consider using this: https://in.mathworks.com/matlabcentral/fileexchange/22441-curve-intersections
カテゴリ
ヘルプ センター および File Exchange で z-transforms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

