plotting sinuos curve using matlab

조회 수: 3 (최근 30일)
fima v
fima v 2017년 2월 14일
이동: DGM 2024년 10월 9일
Hello , i wrote the following code by the known formulla which is attached,but instead of getting the desired sinous shape ,i get a baloon, if any one could tell where did i go wrong . Thanks
*********************
alpha=0.87
tau=1.35
r=1:0.01:1.35;
phi=alpha*sin((log(r)*pi)/(log(tau)));
figure;polarplot(r,phi);
***************************

답변 (1개)

Honglei Chen
Honglei Chen 2017년 2월 14일
looks like it should be
polarplot(phi,r)
instead of
polarplot(r,phi)
HTH
  댓글 수: 1
fima v
fima v 2017년 2월 14일
이동: DGM 2024년 10월 9일
Thank you very much

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Matched Filter and Ambiguity Function에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by