Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

two vectors graph on same x-axis(time) point.

1 visualización (últimos 30 días)
Raghavendra Reddy P
Raghavendra Reddy P el 1 de Jun. de 2015
Cerrada: Walter Roberson el 1 de Jun. de 2015
i have 2 vectors x and y
>> t=1:10;
>> x=[1 4 3 -5 2.5 18 11 27 5 7];
>> y=[1 3.1 2.85 26 6.9];
>> plot(t,x)
which gives x plot, i wanted to draw y graph on existing plot on same t-axis points(1:10) such that elements value of y which matches x elements value should be drawn on t-points. for example y1=x1,y2=x3,y3=x5,y4=x8,y5=x10 are almost equal and these y values should plot on t values of t=[1 3 5 8 10] which was already there is x-plot i.e t=1:10

Respuestas (0)

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by