Plot 3D-Histogram

7 views (last 30 days)
Dario Denzler
Dario Denzler on 21 Mar 2017
Edited: Dario Denzler on 22 Mar 2017
Hi
I would like to plot the number of cycles of a loading history in a 3D-Histogramm similar to this:
I want to visualize the number of cycles in relation to mean and amplitude stresses so cycles = f(mean,amp).
mean = [-20 -25 10 5 20];
amp = [10 8 3 7 2];
cycles = [10 6 8 4 9];
Therefore, looking at the second dataset: 6 = f(-25,8)
I tried to use
matrix = full(sparse(amp,mean,cycles));
but of course this only works if my mean and amp vector are the indices within the matrix. Now, these are the actual values with the corresponding cycles. Any hints on how to create the matrix and produce the complete histogram with X-Axis showing mean, Y-Axis showing amp and Z-Axis showing cycles?
Here an image, how it should look like. I have used different vectors for amp and mean, just to get the plot to work. As you see the axis go from [0:10] which are the indices of my matrix and not the actual mean and amp stress values

Answers (0)

Categories

Find more on Stress and Strain 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!