This is a question that I asked previously however It was not posed correctly;
I solved a state space equation using a function and 0de45, I have attached a picture of my function.
By running the below code in the command window, the plots of y(1), y(2), y(3) and y(4) are generated against time..After plotting y(1), y(2), y(3), I am trying to plot the integral functions of y(1), y(2), y(3) ...however, I am having a hard time plotting the integrals. please kindly assist, thank you in advance!
tspan = [0 0.005];
iniCon = [0; 0; 0; 0];
[t,y] = ode45(@sys, tspan, iniCon);
cols = size(y,2);
for k = 1:cols