How to make this data make sense graphically
Ältere Kommentare anzeigen
I have data that looks like the following:
Columns 1 through 7
0 0 1.0000 1.0000 1.0000 1.0000 1.0000
0 0 1.4082 1.4082 1.4082 1.4082 1.4082
0 0 1.8165 1.8165 1.8165 1.8165 1.8165
0 0 2.2247 2.2247 2.2247 2.2247 2.2247
0 0 2.6330 2.6330 2.6330 2.6330 2.6330
0 0 3.0412 3.0412 3.0412 3.0412 3.0412
0 0 3.4495 3.4495 3.4495 3.4495 3.4495
0 0 3.8577 3.8577 3.8577 3.8577 3.8577
0 0 4.2660 4.2660 4.2660 4.2660 4.2660
0 0 4.6742 4.6742 4.6742 4.6742 4.6742
Columns 8 through 10
1.0000 0 0
1.4082 0 0
1.8165 0 0
2.2247 0 0
2.6330 0 0
3.0412 0 0
3.4495 0 0
3.8577 0 0
4.2660 0 0
4.6742 0 0
Now each number represents how long it takes for an acid to propagate through a plastic. At each point in time, the acid will have taken over that cell, say. 0's here really mean Infinity which means that that cell will never be affected, i.e. is doesn't get dissolved.
I also have this data in 3D, which does the same thing but in the z axis.
Which is the best way to plot this? When I do it with contours (in 3D isosurfaces) it doesn't look nice at all.
4 Kommentare
Walter Roberson
am 13 Mär. 2011
You asked this recently and were asked for clarification about the format of the data, but you have not clarified here.
What variable is across the columns?
What variable is down the columns?
Matthew Haworth
am 13 Mär. 2011
Oleg Komarov
am 13 Mär. 2011
You didn't see the comments but you were fast to delete the same previous post and re-ask.
Matthew Haworth
am 13 Mär. 2011
Antworten (1)
Oleg Komarov
am 13 Mär. 2011
0 Stimmen
See if you like the concept:
A = [...
0 0 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 0 0
0 0 1.4082 1.4082 1.4082 1.4082 1.4082 1.4082 0 0
0 0 1.8165 1.8165 1.8165 1.8165 1.8165 1.8165 0 0
0 0 2.2247 2.2247 2.2247 2.2247 2.2247 2.2247 0 0
0 0 2.6330 2.6330 2.6330 2.6330 2.6330 2.6330 0 0
0 0 3.0412 3.0412 3.0412 3.0412 3.0412 3.0412 0 0
0 0 3.4495 3.4495 3.4495 3.4495 3.4495 3.4495 0 0
0 0 3.8577 3.8577 3.8577 3.8577 3.8577 3.8577 0 0
0 0 4.2660 4.2660 4.2660 4.2660 4.2660 4.2660 0 0
0 0 4.6742 4.6742 4.6742 4.6742 4.6742 4.6742 0 0];
szA = size(A);
A = fix(A*100);
A = arrayfun(@(x,y) repmat(x,y+1,1), 1:numel(A), A(:).','un',0);
[x,y] = ind2sub(szA,cat(1,A{:}));
hist3([y,x],{1:10 1:10})
set(get(gca,'child'),'FaceColor','interp','CDataMode','auto');

Oleg
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!