필터 지우기
필터 지우기

What is wrong with my waterfall plot?

조회 수: 2 (최근 30일)
Kyle McLaughlin
Kyle McLaughlin 2020년 11월 12일
답변: Deepak Meena 2020년 11월 17일
Hello,
I am trying to make a vibration spectrum plot using the waterfall command. I want the X axis to be time, Y to be rpm, and Z to be the amplitude of the frequency. I have produced a plot but it does not look similar to my reference. My plot does not show the color gradient for the z axis and it does not have the lines on the floor of the graph like other waterfall plot examples have on Matlabs website.
Nor = [linspace(0,4000,13) 3600 2660 linspace(2646,2646,14) 2660 3200 linspace(3800,0,12)] ; %outter ring rpm
time = linspace(0,43,43); %process time
BPFO_A = (n/120)*(1-(d/D)*cos(thetaA))*(abs(Nor+Nir)); %frequency
%creating waterfall plot
[X,Y] = meshgrid(time,Nor);
Z1 = meshgrid(BPFO_A,Nor);
z = meshgrid(Nor,BPFO_A);
figure(1)
waterfall(X',Y,Z1')

답변 (1개)

Deepak Meena
Deepak Meena 2020년 11월 17일
Hi Kyle,
Specify the value of the variables so that we can reproduce this on our end as well
Thanks

카테고리

Help CenterFile Exchange에서 Visual Exploration에 대해 자세히 알아보기

태그

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by