Info

此问题已关闭。 请重新打开它进行编辑或回答。

how to plot the graph

1 次查看(过去 30 天)
nkumar
nkumar 2013-4-20
关闭: MATLAB Answer Bot 2021-8-20
PLease tell how to plot the graph from the equation

回答(1 个)

Chandrasekhar
Chandrasekhar 2013-4-20
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)

此问题已关闭。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by