%==================================
%===== The Ramp Sine Function =====
%==================================

clear
clc

Amplitude = 12;
Frequency = 2.4;
Phase = 0;
Duration = 5;
SamplingRate = 100;
AngularFrequency = 2*pi*Frequency;
Time = 0:1/SamplingRate:Duration;

RiseValue = 20;
RampSineFunction = Amplitude.*sin(AngularFrequency.*Time + Phase) + (RiseValue*Time) + 0.8;

figure(1);
plot(Time,RampSineFunction);
title('Positive Ramp Sine Function');
xlabel('Time (Sec)');
ylabel('Amplitude (V)');
grid on