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일

1 개 추천

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일

0 개 추천

vpasolve() permits you to enter ranges to search over.

카테고리

도움말 센터File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

태그

질문:

2018년 7월 6일

답변:

2018년 7월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by