Visualization of 4D Plot
8 views (last 30 days)
Show older comments
Pratim Saha
on 26 Sep 2019
Commented: Pratim Saha
on 26 Sep 2019
Hi,
This is Pratim. I want to plot energy over a volume of cylinder such that its surfaces show energy in terms of color mapping. It will be a 4D plot. Can you please suggest me any suitable option.
0 Comments
Accepted Answer
Bjorn Gustavsson
on 26 Sep 2019
Perhaps you're asking for something like this:
[X,Y,Z] = cylinder(linspace(1,1.5,100),100); % You have to specify your cylinder, somehow - this is only an example
Q = peaks(100); % Some arbitrary values in a size that matches the size of X Y and Z
surf(X,Y,Z,Q),shading flat % display your energies on the cylindrical surface
colorbar
HTH
More Answers (0)
See Also
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!