Inline function is not working properly
显示 更早的评论
So I am trying to make a stem graph and the text book uses inline to create a function for discrete time function but I keep having errors using it. The function is
i just want to know for either an alternative or why the inline function isnt working with my code. Snippet of code not working:
i just want to know for either an alternative or why the inline function isnt working with my code. Snippet of code not working: n = -10:10;
f = inline('e^(-n/5).*cos(pi*n/5).*(n>=0)','n');
stem(n,f(n),'k');
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Function Creation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
