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.
0 个评论
回答(2 个)
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
2013-10-20
编辑:Image Analyst
2013-10-20
Why do some numbers occur 3 times?
sortedValues = sort(values, 'ascend')
plot(sortedValues, 'bo-');
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Discrete Data Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!