How to make this data make sense graphically
Mostra commenti meno recenti
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 Commenti
Walter Roberson
il 13 Mar 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
il 13 Mar 2011
Oleg Komarov
il 13 Mar 2011
You didn't see the comments but you were fast to delete the same previous post and re-ask.
Matthew Haworth
il 13 Mar 2011
Risposte (1)
Oleg Komarov
il 13 Mar 2011
0 voti
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
Categorie
Scopri di più su Image Processing Toolbox in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!