Data dimensions must agree.
조회 수: 4 (최근 30일)
이전 댓글 표시
surf(yvalue, xvalue,abs(Xpow) ,'EdgeColor','none'); % getting error in this line...
colorbar
axh = mesh(T-T(1), v_grid_new, abs(STFT_data(:,:,(1+Lr*La)/2)));
view(2)
shading interp
xlabel('Angle of arrive(degrees)')
ylabel('Range(meters)')
title(['Range-Angle heatmap FrameID:' num2str(i)] );
hold off;
pause(0.1)
댓글 수: 2
Dyuman Joshi
2023년 2월 4일
편집: Dyuman Joshi
2023년 2월 4일
What is the size of yvalue, xvalue and Xpow? and please copy-paste the full error message.
답변 (1개)
Sulaymon Eshkabilov
2023년 2월 4일
편집: Sulaymon Eshkabilov
2023년 2월 4일
Check the sizes of these variables:
size(yvalue)
size(xvalue)
size(abs(Xpow))
See e.g.:
x = -10:.2:10;
y = -pi:.1:pi;
[Xvalues, Yvalues]=meshgrid(x,y);
Z = exp(sin(Xvalues))+exp(cos(Yvalues));
surf(Yvalues, Xvalues,Z) % Correct entries
Xt = Xvalues.';
surfc(Yvalues, Xt, Z) % size mismatch
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Distribution Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!