フィルターのクリア

Find zeros in interval

13 ビュー (過去 30 日間)
Harel Harel Shattenstein
Harel Harel Shattenstein 2018 年 7 月 6 日
回答済み: Torsten 2018 年 7 月 6 日
I try to find a solution for
Try 1
syms x t
f=@(x)int(exp(-(t./x).^2),t,-1,1)-1.5;
fzero(f,[0.5,2])
Try 2
solve(int(exp(-(t./x).^2),t,-1,1)==1.5,x)
The first try does not work, the second work but I can enter an inverval How can I solve an equation given an interval?

採用された回答

Torsten
Torsten 2018 年 7 月 6 日
f=@(x)integral(@(t)exp(-(t/x).^2),-1,1)-1.5;
sol=fzero(f,[0.5,2])

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2018 年 7 月 6 日
vpasolve() permits you to enter ranges to search over.

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by