Plotting in a specific range
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
ILAYDA GULSEN KOCAK
el 24 de Mayo de 2021
Comentada: ILAYDA GULSEN KOCAK
el 25 de Mayo de 2021
lets say i have this simple code:
Res=[];
for i=10:2:50
for t=1:1:3
y=i*t
Res=[Res; i t y ]
end
end
How can I plot i-y curve but only when i>20 ?
2 comentarios
Respuesta aceptada
Fangjun Jiang
el 24 de Mayo de 2021
index=Res(:,1)>=20;
plot(Res(index,1),Res(index,3))
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!