Filter löschen
Filter löschen

How to make a polar plot function curve and not rigid?

2 Ansichten (letzte 30 Tage)
Christian Jaramillo
Christian Jaramillo am 13 Sep. 2018
Kommentiert: Walter Roberson am 14 Sep. 2018
Hello,
I'm not sure why but when I polarplot the graph is very rigid. does anyone know how to change it? I attached a picture and below is what i'm using;
theta = 0*pi: 0.1*pi: 2*pi;
r = 5*cos(4*theta);
polarplot(theta, r)

Antworten (1)

Amir Xz
Amir Xz am 13 Sep. 2018
Steps are so large.
theta = 0*pi: 0.01: 2*pi;
  2 Kommentare
Christian Jaramillo
Christian Jaramillo am 14 Sep. 2018
According to the textbook MatLab for Engineers, that's the array provided
Walter Roberson
Walter Roberson am 14 Sep. 2018
0*pi: 0.1*pi: 2*pi is only 21 points, and it needs to cover all 8 nodes in that, so it averages less than 3 points per node. You need to use samples that are closer together, or else you need to interpolate between those 21 points (which could give you a quite misleading idea of what the curve looks like.)

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Polar Plots finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by