No BSD License  

Highlights from
GUI for the performance analysis of pedelecs

image thumbnail
from GUI for the performance analysis of pedelecs by Jan Cappelle
Modeling the behaviour of electric bicycles

plot_ksi3D(ksimodel,avail,what,Z,tit)
function  plot_ksi3D(ksimodel,avail,what,Z,tit)
%PLOT_ksi3D


% make a new grid with max speed, max Torque and Speed step and Torque step
if not(isnumeric(ksimodel))
Xnew = ksimodel.X;
ksi=ksimodel.ksi;
MAM=ksimodel.MAM;


colors=['.y'
        '.g'
        '.b'
        '.r'];
    howtoplot=cellstr(colors);
amodes=['ZA '
        'MAe'
        'MAn'
        'MAp'];
    
set(text,'fontsize',12)
for i=2:4
    if what(i)==1
        if avail(i)==0
             errordlg(['The ',amodes(i,:),' mode is not available for this pedelec'],'Bad Input','modal');
        else
            hold on
       plot3(Xnew(:,2),Xnew(:,1),ksi(:,i-1)*100,char(howtoplot(i)))
        end
    end
end
grid on
view(150,-30);
axis([0 80 0 25 0 100])
title(tit,'fontsize',14)
ylabel('Speed [km/h]','rotation',30)
zlabel('\xi [%]','rotation',0)
xlabel('T_c [Nm]','rotation',-10)
hold off
else
    errordlg('there are no models found for this assistance mode','Bad Input','modal')
end

Contact us at files@mathworks.com