exercise_batterypower;
m_rider = [40:1:110]; % array of different weights for rider in kg: [40,41,42,...,110]
A = FSA(h_rider, m_rider) + A_segway;
v = v_kmh2msec(v_const);
m = m_segway + m_rider;
Torque = (d_wheel / 2) * F_total(A, v, c_D, m, alpha);
P_mech_effective = Torque * v_msd2rad(v_kmh2msec(v_const), d_wheel);
P_ideal_batteries = P_mech_effective * (1 / eff_overall);
t_travelled = E_batteries_total ./ P_ideal_batteries;
t_travelled_minutes = t_travelled / 60;
plot(m_rider, t_travelled_minutes), xlabel('Weight of Traveller in kg'), ylabel('Time travelled in minutes'), title('Weight of rider vs. time travelled at constant velocity of 20km/h'), grid