Need Help to Homework
이전 댓글 표시
Hello,
Consider the matrix A=[2/3 -2/3; 2/3 7/3].
Consider 10000 equally spaced points on the unit circle in R2 (assume Euclidian
distance). The coordinates of each of these points define a column vector
v in R2. Compute w = Av for all points, interprete the resulting vectors
again as points in the plane, and draw all resulting points in one figure.
What i need to do?
댓글 수: 2
Wayne King
2012년 10월 21일
Unless you show some sample code where you have tried something, it's best to ask your professor or the TA for help to get started.
Alex
2012년 10월 21일
편집: Walter Roberson
2012년 10월 21일
채택된 답변
추가 답변 (2개)
Wayne King
2012년 10월 21일
편집: Wayne King
2012년 10월 21일
0 개 추천
My hint would be this:
1.) Think about what equation every point on the unit circle satisfies in terms of cos(theta) and sin(theta).
2.) Generate 10,000 equally-spaced angles between [0,2*pi]
I think any more help than that and I'm just writing the code for your assignment.
댓글 수: 5
Alex
2012년 10월 21일
Wayne King
2012년 10월 21일
편집: Wayne King
2012년 10월 21일
I think your assignment says "on the unit circle", so r = 1. You're not generating points on or inside the unit circle.
n = 10000;
theta = linspace(0,2*pi,1e4); %sorry I misread earlier
r = 1; % or just leave it off.
x =r.*cos(theta);
y =r.*sin(theta);
plot(x,y,'.')
v = [x;y];
Matt J
2012년 10월 21일
It's early in the morning for me still, but I still don't see where the assignment "specifically asks for random points".
Wayne King
2012년 10월 21일
편집: Wayne King
2012년 10월 21일
oh sorry, Matt is correct!! I'm trying to do too many things at once. You should follow Matt's suggestion then and generate an equally spaced vector from 0 to 2*pi. I'll edit my post, but leave comment to show that Matt correctly pointed out my mistake.
Alex
2012년 10월 21일
Image Analyst
2012년 10월 21일
0 개 추천
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!