
Getting the value of a graph at a certain point
    15 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    prateek bhadauria
 el 22 de Feb. de 2020
  
    
    
    
    
    Comentada: prateek bhadauria
 el 2 de Mzo. de 2020
            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 comentarios
Respuesta aceptada
  Priyanshu Mishra
    
 el 25 de Feb. de 2020
        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');
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




