フィルターのクリア

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 Center および File ExchangeEquation Solving についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by