Solved

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

Posted on 2003-02-27
Medium Priority
445 Views
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
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

LVL 7

Accepted Solution

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

ID: 9474606
rocky:
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

## Featured Post

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
Course of the Month10 days, 7 hours left to enroll