Plot 3D-Histogram

조회 수: 6 (최근 30일)
Dario Denzler
Dario Denzler 2017년 3월 21일
편집: Dario Denzler 2017년 3월 22일
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