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

lookfor2a(x,y,MA)
function lookfor2a = lookfor2a(x,y,MA)


%lookfor(x,y) with x a string that should be a field of the variable y,
%returns the variable stored in y.x
%MA tells which assistance mode is asked! {'MAe','MAn','MAp','ZA'}

if isfield(y,x)==0
   lookfor2a=[];
else 
    hulp=getfield(y,x);
    if isfield(hulp.d,MA)
    lookfor2a=getfield(getfield(getfield(y,x),'d'),MA);
    else
    lookfor2a=[];
    end 
end

Contact us at files@mathworks.com