how to do this
3 ビュー (過去 30 日間)
古いコメントを表示
y=6[2A-0.5sin(A)]/pi for 0<= x <= pi/2
0 件のコメント
回答 (2 件)
Mischa Kim
2014 年 10 月 21 日
編集済み: Mischa Kim
2014 年 10 月 21 日
Agil, what is A? Is it supposed to be x? At any rate, in MATLAB language you'd use something like
x = 0:0.1:pi/2; % crates a vector of x vals
y = 6*(2*x - 0.5*sin(x))/pi % computes y as a function of x
plot(x,y)
0 件のコメント
Shrirang
2014 年 10 月 21 日
Yes above answer is right but If you are looking for system implementation then u can implement in simulink as in diagram or in m script you can write as follows (same as above answer but some changes) if (x>=0) && (x<=pi/2) y = 6*(2*x - 0.5*sin(x))/pi; else y = 0; % Depends on your requirement end
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Graphics Performance についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!