Have x find y
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
androSLO
el 18 de En. de 2014
Respondida: androSLO
el 19 de En. de 2014
Hello,
I have one problem which i can't solve.
I have x = [...], y1=[...], y2=[..] And i have made plot in one graph. Now i want with specific X (is 230) find y1 and y2 on graph and write it out that i can know which value is y1 and y2 on this x.
Thanks in advance. Regards, Andrej
1 comentario
Respuesta aceptada
Azzi Abdelmalek
el 18 de En. de 2014
x=0:0.1:10;
y1=cos(x);
y2=sin(x);
x1=2.234
y11=interp1(x,y1,x1)
Y21=interp1(x,y2,x1)
0 comentarios
Más respuestas (3)
Image Analyst
el 18 de En. de 2014
You can use spline() or polyfit() to get the value at "in between" locations.
1 comentario
Ver también
Categorías
Más información sobre Surface and Mesh Plots en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!