展开全部
Basically, there are two ways to visualise the polar dataset provided above!62616964757a686964616fe59b9ee7ad9431333366303131 I will start from the straightforward way in which the data is plotted in polar coordinates directly, to the alternative way in which the data is plotted in Cartesian coordinates instead.
- Firstly, you need to create two arrays which store the polar point consisting of theta and rho seperately, as follow: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 ];
- Plot line in polar coordinatespolarplot( deg2rad(theta), rho );
- Plot line in Cartesian coordinates[ x, y ] = pol2cart( deg2rad(theta), rho );
plot( x, y );
Personally, the second plot is easier in visualisation but the transformation from polar coordinates to Cartesian ones must be made after the initialisation of variables.