how to plot Integrate of exponent and cosine equation.
2 次查看(过去 30 天)
显示 更早的评论
i want to do simulation to plot this equation;
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/241633/image.png)
where i want to change the phi with 0, π/4, and π/2.
Next, I want to do,
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/241634/image.png)
where i want to see what is the shape of the graph with multiple tau is used.
Can anyone help me some idea how to start? i appreciate it so much!
5 个评论
回答(1 个)
Martin C.
2019-10-8
you can try something like this
syms tau t
f = exp(-t/tau).*cos(t+1)
func = int(f,t,0,1)
x = 0.01:.01:10;
y = subs(func, x)
plot(x,y)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Electrical Block Libraries 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!