What does ~ signify in: function [x, f, g] = defineSystem(~, params)
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Pallov Anand
el 16 de Nov. de 2022
Comentada: Pallov Anand
el 17 de Nov. de 2022
function [x, f, g] = defineSystem(~, params)
syms p v z % states
x = [p; v; z];
f0 = params.f0;
f1 = params.f1;
f2 = params.f2;
v0 = params.v0;
m = params.m;
Fr = f0 + f1 * v + f2 * v^2;
% Dynamics
f = [v; -Fr/m; v0-v];
g = [0; 1/m; 0];
end
0 comentarios
Respuesta aceptada
Torsten
el 16 de Nov. de 2022
It signifies that the function "defineSystem" is usually called with two inputs, but that the first input can be ignored in the actual case because it is not needed to calculate the output variables x, f and g.
Más respuestas (0)
Ver también
Categorías
Más información sobre Particle & Nuclear Physics 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!