||'''Book'''|| Getting started with MATLAB || ||'''Author'''|| Rudra Pratap || ||'''Edition'''|| || /* code_begins */ {{{ print "Plotting a Spiral" print "To plot a spiral,we need an angle theta" var('theta') print "Function r is given by: r=e^(theta/10)" r=e^(theta/10) print "Always use polar_plot() function when dealing with angles" print "Plot can be obtained by using the function \npolar_plot(r,(theta,0,10+pi))" polar_plot(r,(theta,0,10+pi)) Result: Plotting a Spiral To plot a spiral,we need an angle theta Function r is given by: r=e^(theta/10) Always use polar_plot() function when dealing with angles Plot can be obtained by using the function polar_plot(r,(theta,0,10+pi)) }}} /* code_ends */ * '''Solution by''': * , ,