?
Solved

matlab / c how do i map a circle on a square and vice versa

Posted on 2003-02-27
4
Medium Priority
?
445 Views
Last Modified: 2006-11-17
hi guys...

how do i map a circle (r,theta) on to a square (x,y) ....  i have to map pixel by pixel such that the circle(square) gets mapped on to the square(circle).. and vice versa..

thank you for any sort of help....

0
Comment
Question by:rocky
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 7

Accepted Solution

by:
MrNed earned 200 total points
ID: 8054325
I hate to be the one to tell you this, but circles and squares are different shapes :)

if i understand you correctly, imagine a ray from the centre going around like a clock hand 360degrees. Each iteration of angle, calculate the distance to the square edge and put the circle coord there. or something.
0
 

Expert Comment

by:CleanupPing
ID: 9474606
rocky:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

Featured Post

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question