How to plot intergratoion results into a table
显示 更早的评论
syms f(t) tf f(t)=8*exp(-0.1*t); F(tf)=100-int(f(t),t,0,tf);
t = 0 hours to 24 hours I was wondering how I could have a table with column of hours going from 1-24 and a colum of F(tf) with the values
采纳的回答
更多回答(1 个)
Andrei Bobrov
2018-3-16
out = table(tt,arrayfun(@(t0)100 - integral(@(tt)8*exp(-.1*tt),0,t0),tt),'v',{'Time','data'});
类别
在 帮助中心 和 File Exchange 中查找有关 Tables 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!