MATLAB: How to plot intergratoion results into a table MATLABtable 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 Best Answer Try this:syms f(t) tff(t)=8*exp(-0.1*t);F(tf)=100-int(f(t),t,0,tf);tf=1:24;Ftf=double(F(tf));Tab=array2table([tf.',Ftf.'],'VariableNames',{'Hour','Value'}) Related SolutionsMATLAB: Average values from timeseries Below is a general scetch of what you need to do. Give it a shot and if you get stuck, share the code and let us know where you're stuck. Use d = day(t,'dayofyear') to get the day-of-year number for each datatime value where t is the datetime column. Use h = hour(t) to get the hour of each datetime value where t is the datetime column. Use [G,ID] = findgroups(d,h) to group the days & hours (d and h are from the steps above)Use Y = splitapply(@mean,data,G) to get the mean of each group of data where 'data' is a colum in your table. G is from the previous step. MATLAB: How to plot a symbolic function with an intergral Try this:syms f(t) tfc=100;a=8;b=0.1;f(t)=a*exp(-b*t);F(tf)=c-int(f(t),t,0,tf);tf=0:0.01:100;plot(tf,F(tf)) Related QuestionApp design UI figure How to Add Excel like Sort & filter selectionSolving a system of 6 ODES with 6 Unknowns and 6 known values for each value of the loopTime varying force with ode23How to read .csv file using textscan functionIs simplification of ilaplace possibleEzplot fails to plotI want to use inverse laplace with tf function. How to do it? I take an error in matlab when ı use code like below.
Best Answer