how to plot the graph

PLease tell how to plot the graph from the equation

回答 (1 件)

Chandrasekhar
Chandrasekhar 2013 年 4 月 20 日

0 投票

for i = 1:10 if(t(i) <= 0.75 && t(i) >= 0.5) r(i,1) = (a*(1-cos(8*pi*t)))/2; else r(i,1) = 0; end end
plot(t,r);

1 件のコメント

nkumar
nkumar 2013 年 4 月 22 日
i get error
Undefined function 't' for input arguments of type 'double'.
Error in Untitledgr (line 2) if(t(i) <= 0.75 && t(i) >= 0.5)

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

タグ

質問済み:

2013 年 4 月 20 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by