Source Code for 'Practical MATLAB Modeling with Simulink' by Sulaymon L. Eshkabilov - Apress/practical-matlab-modeling-w-simulink ...
clear all clc syms y(t) dy = diff(y) deq = diff(y, 2) + dy + y == 0 soln = dsolve(deq, y(0) == 1, dy(0) == 0) y_eval = double(vpa(subs(soln, t, 4))) Notice how in the second to last line in the image, ...
Results that may be inaccessible to you are currently showing.
Hide inaccessible results