%% Display Differential Equation
% Define a string that describes a differential equation.

S = "m*diff(y,t,t) == m*g-k*y";

% Create a string array that combines the differential equation and additional text. Display the formula along with the text.

symstr = ["'The equation of motion is'"; S;"'where k is the elastic coefficient.'"];
displayFormula(symstr)

%
% Copyright 2019 The MathWorks, Inc.