How to solve an equation

조회 수: 1 (최근 30일)
Emilia
Emilia 2020년 11월 27일
댓글: Emilia 2020년 11월 27일
Hello,
I have a function equation and it is difficult to set it to the value x.
If is there a matlab in which I enter numbers data and get an x result as in this example?
Thanks in advance
clear;
fOut=1/3
m=1
s=1
fOut = (exp(-0.5*((m-x)/s)^2)/(s*(2*pi)^0.5))
Get the solution
x=...

채택된 답변

KSSV
KSSV 2020년 11월 27일
syms x
fOut=1/3
m=1
s=1
eqn = fOut -(exp(-0.5*((m-x)/s)^2)/(s*(2*pi)^0.5))== 0 ;
s = solve(eqn,x)
  댓글 수: 1
Emilia
Emilia 2020년 11월 27일
Thank you for your response. :)
Small question, after this equation I get two positive and negative solutions, I want it to be accepted only positive how can it be done?

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Equation Solving에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by