Basically,therearetwowaystovisualisethepolardatasetprovidedabove!Iwillstartfromthestraightforwardwayinwhichthedataisplottedinpolarcoordinatesdirectly,tothealternativewayinwhichthedataisplottedinCartesiancoordinatesinstead.-Firstly,youneedtocreatetwoarrayswhichstorethepolarpointconsistingofthetaandrhoseperately,asfollow:theta = 0.0 : 30.0 : 330.0;rho = [ 0.1349, 0.1257, 0.1405, 0.1468, 0.1399, 0.1422, 0.1612, 0.1578, 0.1402, 0.1393, 0.1228, 0.1302 ];-Plotlineinpolarcoordinatespolarplot( deg2rad(theta), rho );-PlotlineinCartesiancoordinates[ x, y ] = pol2cart( deg2rad(theta), rho );plot( x, y );Personally,thesecondplotiseasierinvisualisationbutthetransformationfrompolarcoordinatestoCartesianonesmustbemadeaftertheinitialisationofvariables.
阅读全文 >