フィルターのクリア

How i can code this equation ?

3 ビュー (過去 30 日間)
Iasonas Vasios
Iasonas Vasios 2022 年 4 月 1 日
回答済み: Santosh Fatale 2022 年 4 月 4 日
I am working on my thesis in biomedical engineering and i am stuck in coding the following equation:
I know the values of Sn6 ,f and d. When i try to calcutale the above by using this code ( Sn7=symsum(Sn6*(f-(m/d)),m,lower bound ,upper bound)) i get an error. I don't know how to and the lower bound correctly.
  2 件のコメント
Iasonas Vasios
Iasonas Vasios 2022 年 4 月 1 日
The Sn6 value, is a matrix 1x43 double
Tala
Tala 2022 年 4 月 1 日
編集済み: Tala 2022 年 4 月 1 日
infinity is a mathematical concept, for engineering tasks, I would say you want to look at order of magnitutes. Depending on the values of f and d, you could accept an uncertanity and truncate your sum, and say sum +/- error. In
one could choose infinity=1000 and use something like this
SN6=rand(1,43);
f=rand(1,1);
d=rand(1,1);
summ=zeros(1,43);
yourinf=1000;
for m=-yourinf:yourinf
u=SN6.*(f-(m/d));
SN7=summ+u;
end

サインインしてコメントする。

採用された回答

Santosh Fatale
Santosh Fatale 2022 年 4 月 4 日
Hi Iasonas,
I understand that you want to implement following equation in MATLAB using “Symbolic Math Toolbox”. I assume that variables , f, and d are known to you. The above equation can be implemented as follows:
syms m f;
SN7(f) = symsum(SN6*(f - (m/d)),m,lowerBound,upperBound)
f = rand(1,1) % replace it.
SN7(f)
As per the equation, the lowerBound and upperBound for summation are “” and “+”. This bounds generates “NaN” (Not a Number) result for variable for a given value of f. It is suggested that avoid using those values and use some finite large number as an upperBound and some finite small number as a lowerBound.
I expect this solution clears the issue you are facing in implementation.

その他の回答 (0 件)

カテゴリ

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

タグ

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by