How to slice 3d data in xyzv vector format
2 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I have a set of 3d data which contains xyzv in vectors, xyz are the coordinates i.e. x is 113104x1 double from -0.0197 to 0.0197, so do y and z, v is the value of data on each coordinate.
I have manage to plot the data set with: scatter3(x,y,z,ones(size(x))*50,v,'filled'); colorbar;
But how can I slice the sphere and take a look inside?
Thank you!
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/145129/image.png)
0 件のコメント
回答 (1 件)
Jos
2014 年 8 月 18 日
Hi,
think this should work, fill in the x value for the slice you want to look at
xslice = 0;
scatter(y(x==xslice),z(x==xslice),ones(size(y(x==xslice)))*50,v(x==xslice))
colorbar
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Volume Visualization についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!