plot angular distribution in matlab with a specified axis.

조회 수: 5 (최근 30일)
Avinash Suresh kumar
Avinash Suresh kumar 2016년 2월 23일
댓글: Avinash Suresh kumar 2016년 2월 23일
Hi all, I have an image with data points scattered in it. I want to define an axis, and see how the data points are distributed with respect to the given axis(angular distribution). I tried the polar plot, but it takes the existing axis of image and makes angular distribution with respect to that axis.
I have attached an image. It shows blue and red dots. I want to define the axis as mentioned in the image. I tried couple of mathematical slope, line , parallel line stuff, but not able to arrive at anuthing. Any idea is appreciated.
Thank you Avinash

답변 (1개)

Explorer
Explorer 2016년 2월 23일
% Plot with unspecified axis
x=0:1:50;
y=sin(x);
plot(x,y)
% Plot with specified axis (from 0 to 25 in x axis and -2 to +2 in y axis)
x=0:1:50;
y=sin(x);
figure, plot(x,y)
axis([0 25 -2 +2])
  댓글 수: 1
Avinash Suresh kumar
Avinash Suresh kumar 2016년 2월 23일
Hi, thank you. This only adds limits to the existing axis . I want to change the axis completely.
Thank you

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

카테고리

Help CenterFile Exchange에서 Scatter Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by