Polar Curves: (Use polarplot funtion to plot polar curves)
clear
theta = 1:0.1:1000;
r = @(a) a./2 .*(1 + cos(theta))
r = function_handle with value:
@(a)a./2.*(1+cos(theta))
polarplot(theta,r(3))
theta = 1:0.1:1000;
r = @(a) 2 .* a ./ (1 + cos(theta))
r = function_handle with value:
@(a)2.*a./(1+cos(theta))
polarplot(theta,r(3))
theta = 1:0.1:1000;
r = @(a) sqrt(a.^2 .* cos(2 .* theta))
r = function_handle with value:
@(a)sqrt(a.^2.*cos(2.*theta))
polarplot(theta,r(3))
Warning: Imaginary parts of complex X and/or Y arguments ignored
theta = 1:0.1:1000;
r = sqrt(2) + cos(theta)
r =
1.9545 1.8678 1.7766 1.6817 1.5842 1.4850 1.3850 1.2854 1.1870 1.0909 0.9981 0.9094 0.8257 0.7479 0.6768 0.6131 0.5573 0.5101 0.4720 0.4433 0.4242 0.4151 0.4159 0.4267 0.4474 0.4778 0.5175 0.5661 0.6232 0.6883 0.7606 0.8394 0.9240 1.0134 1.1069 1.2034 1.3021 1.4018 1.5017 1.6007 1.6979 1.7922 1.8827 1.9686 2.0489 2.1229 2.1898 2.2489 2.2997 2.3417
polarplot(theta,r)
theta = 1:0.1:1000;
r = @(a) a .*(1 + sqrt(2) .* cos(theta))
r = function_handle with value:
@(a)a.*(1+sqrt(2).*cos(theta))
polarplot(theta,r(3))
theta = 1:0.1:1000;
r = @(a) a .*(sqrt(3) / 2 + cos(theta ./2))
r = function_handle with value:
@(a)a.*(sqrt(3)/2+cos(theta./2))
polarplot(theta,r(3))
theta = 1:0.1:1000;
r = @(a) a .*(1 + sin(theta))
r = function_handle with value:
@(a)a.*(1+sin(theta))
polarplot(theta,r(3))
theta = 1:0.1:1000;
r = @(a) 2 .* a ./(1- sin(theta))
r = function_handle with value:
@(a)2.*a./(1-sin(theta))
polarplot(theta,r(-3))
theta = 1:0.1:1000;
r = @(a) a .* cos(6 .* theta)
r = function_handle with value:
@(a)a.*cos(6.*theta)
polarplot(theta,r(3))
theta = 1:0.1:1000;
r = @(a) a .* sin(5 .* theta)
r = function_handle with value:
@(a)a.*sin(5.*theta)
polarplot(theta,r(3))
theta = 1:0.1:1000;
r = @(a) a .* cos(7 .* theta)
r = function_handle with value:
@(a)a.*cos(7.*theta)
polarplot(theta,r(3))
theta = 1:0.1:1000;
r = @(a) a .* cos(8 .* theta)
r = function_handle with value:
@(a)a.*cos(8.*theta)
polarplot(theta,r(3))
theta = 1:0.1:1000;
r = @(a,m) a .* exp(m .* theta)
r = function_handle with value:
@(a,m)a.*exp(m.*theta)
polarplot(theta,r(3,4))
theta = 1:0.1:1000;
r = @(a) a .* theta
r = function_handle with value:
@(a)a.*theta
polarplot(theta,r(3))