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

lookfor2(x,y,z,MA)
function lookfor2 = lookfor2(x,y,z,MA)


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

if isfield(y,x)==0
   lookfor2='?';
   set(z,'string','?');
else
    hulp=getfield(y,x);
    if isfield(hulp.m,MA)
    lookfor2=getfield(getfield(getfield(y,x),'m'),MA);
    set(z,'string',num2str(lookfor2,3));
    else
    lookfor2='?';
    set(z,'string','?');
    end
end

Contact us at files@mathworks.com