Plotting arrays as x and y axis.

62 visualizaciones (últimos 30 días)
ABHISEKH MUKHERJEE
ABHISEKH MUKHERJEE el 12 de En. de 2014
Comentada: Dhrumil el 21 de Nov. de 2022
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

Respuestas (1)

Mischa Kim
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
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
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

Iniciar sesión para comentar.

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by