Plot 3D-Histogram

6 次查看(过去 30 天)
Dario Denzler
Dario Denzler 2017-3-21
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

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Stress and Strain 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by