Hi, I am new user of MATLAB. I need to create a decrement function. Example:
EcAcum = Ec- (Ec- (EcAcum-Input);
EcAcum: Available kinetic energy; Ec: Total kinetic energy; Input: Field instantaneous energy;
My goal is to start the decrease from the EC value and decrease to zero.
I tried using Matlab Function but it did not work.