Sign in

username:

password:



Not a member?

Search matlab



Search tips

Subscribe to matlab



matlab by Keywords

Atanh | Autocorrelation | Bandpass Filter | C++ | Conv | Database | Deconv | Excel | FFT | Filter | Filtering | FIR | Fourier Transfrom | FSK | Gaussian Noise | Haykin | IFFT | Image | Java | LFSR | LMS | LPC | MEX | OFDM | QPSK | Radix | Random | Sampling | Segmentation | Simulink | Visual Basic | Waveform | Wavelet

Sponsor

Industry's highest performing at the lowest power DSPs now as low as $5.00*
Start development today!
*volume pricing for 10ku

Discussion Groups

See Also

Embedded SystemsFPGAElectronics

Discussion Groups | Matlab DSP | plot a circle

Technical discussion about Matlab and issues related to Digital Signal Processing.

  

Post a new Thread

plot a circle - Franklin Rosario - Jul 31 19:08:00 2000

i need to plot 2 lines (e.g. Ax+By+C), 2 circles (e.g.(x-h)^2 + (y-k)
^2 = r^2), and 3 points (e.g. (x1,y1), (x2,y2) & (x3,y3)) all in one
plot, for instructional purposes.
how do i plot a circle centered at (h,k) with radius r?
thanks in advance



______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )

Re: plot a circle - Venugopal Allavatam - Jul 31 20:16:00 2000

hi!
i am not very sure if there is a inbuilt function to draw a circle. so
the best thing to do is to consider some number of points and use the
equation of the circle to get the points.
then u can use the plot method to plot all those points.
have fun
regards
venu
--- Franklin Rosario <> wrote:
> i need to plot 2 lines (e.g. Ax+By+C), 2 circles (e.g.(x-h)^2 + (y-k)
> ^2 = r^2), and 3 points (e.g. (x1,y1), (x2,y2) & (x3,y3)) all in one
> plot, for instructional purposes.
> how do i plot a circle centered at (h,k) with radius r?
> thanks in advance >
> To Join:
>
> To Post:
>
> To Leave:
>
> Archives: http://www.egroups.com/group/matlab
>
> More DSP-Related Groups: http://www.dsprelated.com
=====
============================================================
Venugopal Allavatam Ph: (res.) 312-674-0898
3101. S.Wabash ave., (off.) 312-567-3869
Apt.# 410,
Chicago-IL- 60616 E-mail:

============================================================

__________________________________________________


______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )

Re: plot a circle - Bill Driscoll - Jul 31 21:59:00 2000

Here is one way:
h=3; k=5; r=7; N=256;
t=(0:N)*2*pi/N;
plot( r*cos(t)+h, r*sin(t)+k);
axis('square') Franklin Rosario wrote:
>
> i need to plot 2 lines (e.g. Ax+By+C), 2 circles (e.g.(x-h)^2 + (y-k)
> ^2 = r^2), and 3 points (e.g. (x1,y1), (x2,y2) & (x3,y3)) all in one
> plot, for instructional purposes.
> how do i plot a circle centered at (h,k) with radius r?
> thanks in advance >
> To Join:
>
> To Post:
>
> To Leave:
>
> Archives: http://www.egroups.com/group/matlab
>
> More DSP-Related Groups: http://www.dsprelated.com







(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )

Re: plot a circle - Franklin Rosario - Aug 1 3:28:00 2000

Thanks Bill! I believe this is the most efficient way given the known
parameters. --- In , Bill Driscoll <bill-driscoll@r...> wrote:
> Here is one way:
> h=3; k=5; r=7; N=256;
> t=(0:N)*2*pi/N;
> plot( r*cos(t)+h, r*sin(t)+k);
> axis('square')



______________________________
Start your Android Ice Cream Sandwich development on TI's AM35x Sitara ARM Cortex-A8 processor today.



(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )