Anonymous function outputs to table
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
ingeik
el 11 de Nov. de 2019
Comentada: ingeik
el 11 de Nov. de 2019
doublingtime = @(q) log(2)/log(1+q);
dt = doublingtime(q);
This is the relevant code. I want to make a 25x2 table which shows q values and the corresponding dt values. I want q to go from 0 to 0.25 with a step of 0.01 each time. I've tried all sorts of method to make it work, but im stuck.
0 comentarios
Respuesta aceptada
KSSV
el 11 de Nov. de 2019
q = 0:0.01:0.25 ;
doublingtime = @(q) log(2)./log(1+q);
dt = doublingtime(q);
T = table(q,dt)
Más respuestas (0)
Ver también
Categorías
Más información sobre Tables 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!