필터 지우기
필터 지우기

What does ~ signify in: function [x, f, g] = defineSystem(~, params)

조회 수: 2 (최근 30일)
Pallov Anand
Pallov Anand 2022년 11월 16일
댓글: Pallov Anand 2022년 11월 17일
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

채택된 답변

Torsten
Torsten 2022년 11월 16일
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.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Sequence and Numeric Feature Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by