Plotting arrays as x and y axis.
62 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I am having two arrays containing about 1000 datas. I have entered the datas using for loop. Now i need to plot the graph with one array as x axis and one array as y axis . How to do it
0 comentarios
Respuestas (1)
Mischa Kim
el 12 de En. de 2014
Editada: Mischa Kim
el 12 de En. de 2014
Are they both 1000x1 (or 1x1000) arrays? If yes, you can simply use
plot(x,y)
where x and y are the two arrays. If no, I need more info on the size of the arrays and on what exactly you would like to plot.
9 comentarios
Dhrumil
el 21 de Nov. de 2022
Graph an array of size 10x1 with random values plot the line of the array change the 3 element of the array with 10 and line color changed array with line doing red and the same plot
Dhrumil
el 21 de Nov. de 2022
Graph an array of size 10x1 with random values plot the line of the array change the 3 element of the array with 10 and line color changed array with line doing red and the same plot
Ver también
Categorías
Más información sobre Creating and Concatenating Matrices 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!