how to plot multiple curves in the same figure
156 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
lakom Mariem
el 31 de Oct. de 2017
Hello everyone I'm new in matlab and I want to know how can I plot multiple curves in the same figure knowing that every single curve has it's own expression(function).Do I have to write the code for every single function in has own file?? any idea please and thanks
0 comentarios
Respuesta aceptada
Más respuestas (2)
geofo
el 3 de Dic. de 2021
Editada: geofo
el 3 de Dic. de 2021
plot([rand(10,1), rand(10,1), rand(10,1)])
legend('data1','data2','data3')
Use colororder before calling plot to have your prefered colors.
The vectors v1, v2, v3, in plot([v1, v2, v3]) must be column vectors, all with the same dimension
0 comentarios
Ver también
Categorías
Más información sobre 2-D and 3-D 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!