How to make this data make sense graphically
이전 댓글 표시
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
Walter Roberson
2011년 3월 13일
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
2011년 3월 13일
Oleg Komarov
2011년 3월 13일
You didn't see the comments but you were fast to delete the same previous post and re-ask.
Matthew Haworth
2011년 3월 13일
답변 (1개)
Oleg Komarov
2011년 3월 13일
0 개 추천
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
카테고리
도움말 센터 및 File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!