Plotting of data into an image
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I'm looking for a solution for visualizing my data. I computed some electrophysiological data, which represent the correlation of two signals at seven different levels (heights) and five locations within one height.
The data is saved in one matrix (7x5) for every patient where the significant data is highlighted as 1, while the not-significant ones consist of a 0.
Now I would like to plot this data as different colored dots in a jpg-image, which consists of an idealized model of the 7 levels (seven rectangles at different heights). But since I haven't done this before, I don't even know what to search for. Could anybody just give me a hint, what resembles in some way my problem? Or is there any alternative that you could recommend me for plotting the data?
Thanks in advance
0 comentarios
Respuesta aceptada
Walter Roberson
el 20 de Oct. de 2011
A sample image would help us.
Is each patient to be done separately, or is all the data to appear on the one graph?
If you were to create four column vectors, where H(K), L(K), C(K) P(K) is a Height / Location / Correlation / Patient combination, then you can
pointsize = 15; %adjust as needed
scatter3(H(:), L(:), P(:), pointsize, C(:), 'Marker', 's')
with your height and locations being a fixed small number of values, and your patient IDs being known at the time of executation, you could use
[H, L, P] = ndgrid(heights_vec, locations_vec, patientids_vec);
to construct H, L and P, and then you would build your correlation 3D array C to be indexed by (height, location, patientid), and then C(:) would be in the right order to match everything the unraveled H, L, P.
It might not make much sense the first several times you run one of these but it doesn't take long before it is easier than putting your right leg over your left shoulder.
0 comentarios
Más respuestas (2)
Ver también
Categorías
Más información sobre Blue 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!