Data dimensions must agree.
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Dyuman Joshi
le 4 Fév 2023
Modifié(e) : Dyuman Joshi
le 4 Fév 2023
What is the size of yvalue, xvalue and Xpow? and please copy-paste the full error message.
Réponses (1)
Sulaymon Eshkabilov
le 4 Fév 2023
Modifié(e) : Sulaymon Eshkabilov
le 4 Fév 2023
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 commentaires
Voir également
Catégories
En savoir plus sur Data Distribution Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!