How to assign predetermined values for points of discontinuity
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Anthony Koning
el 8 de Dic. de 2021
Editada: Steven Lord
el 9 de Dic. de 2021
Does anyone know how I would be able to assign a pretermined value for a point of discontinuity? I am currently working on writing a script to determine values at cetrain points of v, and with the exception of v=10, the script is working just fine. at v=10, we are left with the indeterminate of 0/0. Using basic calculus and applying L'Hopital's rule, we can determine that at v=10, the output is .1. However, I don't know how to add this to my script, and am still getting the output of NaN. Any help on how to fix this would be appreciated.
v = 0:5:50
a_n=(0.01.*(10-v))./(exp((10-v)./10)-1)
b_n= exp(-v./80)./8
if v == 10
then a_n = 0.1
end
0 comentarios
Respuesta aceptada
Más respuestas (2)
Walter Roberson
el 9 de Dic. de 2021
v = 0:5:50
a_n=(0.01.*(10-v))./(exp((10-v)./10)-1)
b_n= exp(-v./80)./8
a_n(v == 10) = 0.1;
0 comentarios
Steven Lord
el 9 de Dic. de 2021
Editada: Steven Lord
el 9 de Dic. de 2021
v = 0:5:50
a_n=(0.01.*(10-v))./(exp((10-v)./10)-1)
a_n = fillmissing(a_n, 'constant', 0.1) % Fill missing values (NaN) in a_n with a constant 0.1
b_n= exp(-v./80)./8
0 comentarios
Ver también
Categorías
Más información sobre Genomics and Next Generation Sequencing 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!