All pastes #420601 Raw Edit

asdf

public text v1 · immutable
·published 2007-04-02 08:21 UTC
rendered paste body
t= linspace(0,1.7,400);

typ = input('normale oder logarithmische spirale!?');

switch lower(typ(1))
case 'n'
    [x,y] = Spirale(t);
    plot(x,y);    
    title('Spirale');
    xlabel('x');
    ylabel('y');
    axis('equal');
    
case 'l'
    [x,y] = Logspirale(t);
    plot(x,y);    
    title('Logarithmische Spirale');
    xlabel('x');
    ylabel('y');
    axis('equal');
    
otherwise 
    error('Value of variable typ unknown');
end