Info

この質問は閉じられています。 編集または回答するには再度開いてください。

i'm trying to create an if loop so that I can run my program starting with x=1 and increasing by 1 to x =3.

1 回表示 (過去 30 日間)
Ethan Sehrt
Ethan Sehrt 2016 年 6 月 16 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
The conditions are as follows:
if x=2, f=Inf
if x=>2, f=NaN
otherwise run the function, f=log(5/2-x)
x2 = 0;
if x2 = 2;
f = Inf
elseif x2 => 2;
f = NaN
else
f = log(5/2-x2)
x2 = x2+1;
end
What am I doing wrong?

回答 (0 件)

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by