필터 지우기
필터 지우기

I have a matrix and I want every point to be plotted in a graph resembling a parabolic curve

조회 수: 1 (최근 30일)
Hi,
I have a random matrix and I want each point from the matrix to be plotted on a graph resembling a parabolic curve.
I have attached a pdf of this explaining in further detail of what I want to obtain.
Thank you very much for your time and effort.

답변 (2개)

Image Analyst
Image Analyst 2013년 10월 20일
It's not clear that those numbers mean. I don't know what the rows mean, and I don't know what the columns mean. Plus, some numbers occur 3 or more times. Now because it's a parabola, if the numbers were the y values, you could have them occur twice, not not 3 or more times. And if they are x values, that doesn't work because x values can only occur once (in a parabola).
  댓글 수: 3
Image Analyst
Image Analyst 2013년 10월 20일
편집: Image Analyst 2013년 10월 20일
Why do some numbers occur 3 times?
sortedValues = sort(values, 'ascend')
plot(sortedValues, 'bo-');
sony
sony 2013년 10월 20일
편집: sony 2013년 10월 20일
There will be numbers occurring repeatedly. Basically the numbers will be representing the levelised energy cost of a tidal current turbine placed at different locations and speeds. So the values will repeat every now and then. Thank you for the suggestion I will give it a try.

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


sony
sony 2013년 10월 28일
i think this is what i was looking for:
figure; [c,h]=contour(distance); clabel(c,h);

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by