Info
この質問は閉じられています。 編集または回答するには再度開いてください。
Why doesn't a simple progream work?
1 回表示 (過去 30 日間)
古いコメントを表示
I wrote a simple program, but it doesn't work. I'm completely confused of how such a simple program doesn't work.
x=0:0.1:4;
Ti=0.5;
y=1-(1/(Ti/2)*(0.5))*atan((sin(2*(Ti/2)*(0.5)))/(cos(2*(Ti/2)*(0.5))+exp(2.*acos(x))));
plot(x,y);
hold ond
1 件のコメント
Jan
2014 年 4 月 27 日
Please do not only state, that "it does not work", but explain the occurring problems with details. It is much easier to help, when one does not have to guess the problem at first.
回答 (1 件)
per isakson
2014 年 4 月 27 日
編集済み: per isakson
2014 年 4 月 27 日
My guess: Change
y=1-(1/(Ti/2)*(0.5))*atan((sin(2*(Ti/2)*(0.5)))/(cos(2*(Ti/2)*(0.5))+exp(2.*acos(x))));
to
y=1-(1./(Ti/2)*(0.5))*atan((sin(2*(Ti/2)*(0.5)))./(cos(2*(Ti/2)*(0.5))+exp(2.*acos(x))));
0 件のコメント
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!