How can I plot the data saved in a matrix?
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
burgan
el 27 de Abr. de 2018
Comentada: burgan
el 27 de Abr. de 2018
I have a 104x24 matrix with data I want to plot in a single figure. However, I don't want to plot all the information of the matrix. I have saved the rows I will not use in a variable (row_no_used = [28 37 39 41 43 45 47 50 52 54 56 58 60];). How can I plot the rest of the rows with a simple script? To clarify a little bit more my point, I would like to plot the following rows: 1:27, 36, 38, 40, 42, 44, 46, 48, 49, 51, 53, 55, 57, 59, 61:96.
Many thanks for your help,
0 comentarios
Respuesta aceptada
KSSV
el 27 de Abr. de 2018
A = rand(104,24) ;
row_no_used = [28 37 39 41 43 45 47 50 52 54 56 58 60];
[nx,ny] = size(A) ;
rows = 1:nx ;
row_used = setdiff(rows,row_no_used) ;
iwant = A(row_used,:) ;
plot(iwant)
Más respuestas (0)
Ver también
Categorías
Más información sobre Scatter 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!