How to plot intergratoion results into a table
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Kultar Sall
el 16 de Mzo. de 2018
Respondida: Andrei Bobrov
el 16 de Mzo. de 2018
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
0 comentarios
Respuesta aceptada
Birdman
el 16 de Mzo. de 2018
Editada: Birdman
el 16 de Mzo. de 2018
Try this:
syms f(t) tf
f(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'})
1 comentario
Birdman
el 16 de Mzo. de 2018
Also, have you checked the answer in this question?
Más respuestas (1)
Andrei Bobrov
el 16 de Mzo. de 2018
out = table(tt,arrayfun(@(t0)100 - integral(@(tt)8*exp(-.1*tt),0,t0),tt),'v',{'Time','data'});
0 comentarios
Ver también
Categorías
Más información sobre Logical en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!