Effacer les filtres
Effacer les filtres

Problem in display a figure

1 vue (au cours des 30 derniers jours)
ZC Song
ZC Song le 4 Juin 2019
Modifié(e) : ZC Song le 13 Juin 2019
Hi everyone,
Now I want to display a map using the App designer.
I have two questions, one is why I can't use the gray color in the colormap? I tried to change the color but doesn't work!
The other is why my figure is beyond the axis?
Below is the code and results:
A = [ans(:,1),ans(:,2),ans(:,3)];
clear ans
X_1 = A(:,1);
Y_1 = A(:,2);
Z_1 = A(:,3);
scatter(app.DEMview,X_1,Y_1,200,Z_1,'s','filled')
c = gray;
colormap(c)
colorbar(app.DEMview)
hold on
Thank you very much!

Réponses (0)

Catégories

En savoir plus sur Develop Apps Using App Designer 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!

Translated by