- Angular coordinate, returned as an array. theta is the counterclockwise angle in the x-y plane measured in radians from the positive x-axis. (Emphasis added.)
how to plot excel data in a polar graph?
3 次查看(过去 30 天)
显示 更早的评论
hello everyone , I have Cartesian values in an excel table and I want to plot them in a polar graph, I have transformed them into polar values and radian. by executing the code I have only the empty graph that appears. Help me please. here is the code I use.
dataset=xlsread('tabl.xlsx','tableau','D2:E131');
x=dataset(:,1);
y=dataset(:,2);
[t,r] = cart2pol(x,y),
x1=t*deg2rad;
y1=r*deg2rad;
polarplot(x1,y1,'g','markers',20);
0 个评论
采纳的回答
Star Strider
2018-10-24
Note that deg2rad requires arguments. I am somewhat surprised not providing them did not throw an error.
You did not provide your ‘tabl.xlsx’ file, so we cannot specifically help you with it. Nevertheless, try this:
polarplot(t, r, 'g', 'markers',20);
4 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Axis Labels 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!