why step size is divided by 50?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
sk karimulla
el 9 de Mzo. de 2018
Comentada: sk karimulla
el 26 de Ag. de 2018
step size = (Tmax-Tmin)/50
my question is why it should divided by 50?
4 comentarios
Rik
el 9 de Mzo. de 2018
Without more specific context of your system it is still impossible to give you a more meaningful answer. Apparently the units that Tmin and Tmax are in are 50 times larger than the step size of the model, or there should be 50 steps, or any other reason.
Respuesta aceptada
Abraham Boayue
el 9 de Mzo. de 2018
Editada: Rik
el 25 de Ag. de 2018
HI SK, Let say you have a function f (t) and you want to plot it between t = Tmin and Tmax, in matlab, you have to choose a step size to do so. The step size is defined as delta = (Tmax-Tmin)/(N-1), This is exactly what the function linspace does. The following are equivalent :
N = 51;
stepsize = (Tmax-Tmin)/50;
t = Tmin:stepsize:Tmax;
t = linspace (Tmin, Tmax, 50);
Más respuestas (0)
Ver también
Categorías
Más información sobre Simulink Coder 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!