필터 지우기
필터 지우기

Undefined function or variable 'drawCircle'.

조회 수: 4 (최근 30일)
Asyran Abdullah
Asyran Abdullah 2018년 8월 2일
댓글: Asyran Abdullah 2018년 8월 3일
Hi, I have some problem with drawCicle. Here is the code.
% draw tier 1 and tier 2 circles
drawCircle(baseStation.x, baseStation.y, tier1Radius, 100, 'r--');
drawCircle(baseStation.x, baseStation.y, tier2Radius, 100, 'b--');
And the error is:
*Undefined function or variable 'drawCircle'.*
Can someone help me out?

채택된 답변

Walter Roberson
Walter Roberson 2018년 8월 3일
drawCircle is not a MATLAB function. It appears to be an Octave function.
Also, there is an implementation of a drawCircle function at https://www.mathworks.com/matlabcentral/answers/20077-counting-plots-on-a-figure
  댓글 수: 1
Asyran Abdullah
Asyran Abdullah 2018년 8월 3일
Ya, i get it. Thanks sir. ^_^
theta = linspace(0,360);
y=radius*sind(theta)+center(2);
x=radius*cosd(theta)+center(1);
plot(x,y,color);
axis([xmin,xmax,ymin,ymax])
end

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Multirate Signal Processing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by