Getting the value of a graph at a certain point

51 ビュー (過去 30 日間)
prateek bhadauria
prateek bhadauria 2020 年 2 月 22 日
コメント済み: prateek bhadauria 2020 年 3 月 2 日
i want to know that how can i find the green line graph values at equidistance at x axis interval (0-5) ,i want to know the exact values of x and y coordinates at a particular intervals and at equidistance ie -like this when x is 0 then y value is 0.35,then again same like this how could i find the x and y values of graph,i have to evaluate the points at equidistance .
  2 件のコメント
darova
darova 2020 年 2 月 22 日
I can't run your code. Please use this button
prateek bhadauria
prateek bhadauria 2020 年 3 月 2 日
編集済み: prateek bhadauria 2020 年 3 月 2 日
Thank you for your response darova and sorry for late reply also , i have attach the graph properly and i want to find out the MSE(Mean sqaure error ) so how could i proceed kindly suggest .

サインインしてコメントする。

採用された回答

Priyanshu Mishra
Priyanshu Mishra 2020 年 2 月 25 日
Hi Prateek,
You can use interp1 function to know the y values for the corresponding x values. You may also refer to follwing example taken from the documentaion of interp1 function.
x = 0:pi/4:2*pi;
v = sin(x);
xq = 0:pi/16:2*pi;
figure
vq1 = interp1(x,v,xq);
plot(x,v,'o',xq,vq1,':.');
xlim([0 2*pi]);
title('(Default) Linear Interpolation');
  1 件のコメント
prateek bhadauria
prateek bhadauria 2020 年 3 月 2 日
Thank you response priyanshu this is helpful for me to know the basics of interp 1 function but one step ahead i want to know the MSE(Mean Square Error) at the peaks of graphs which is like first peak at the (4, 0.61) so i want to find the mse at this interval when the graph rises from (0.35 to 0.61 on y axis when the value 4 at x axis) .

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by