How to handle Compasss GUI?

2 Ansichten (letzte 30 Tage)
Prashant Funde
Prashant Funde am 15 Jun. 2017
Bearbeitet: Walter Roberson am 15 Jun. 2017
As per shown in this image of compass, I want to remove 50000, 100000 values from this fig. I removed other values which are the multiples of 30. but by the same way, i tried to remove these values too but not able to do it.
compass(abc(1));
set(findall(gcf, 'String', '30' 'or','String', '60'),'string','')
but this wont work for 250,50000, 100000 n like similar values which shows radial distance.
Please suggest me some command by which I can remove this error.
  2 Kommentare
Walter Roberson
Walter Roberson am 15 Jun. 2017
Are you using R2014b or later, or are you using an earlier release?
Prashant Funde
Prashant Funde am 15 Jun. 2017
Bearbeitet: Walter Roberson am 15 Jun. 2017
I am using 2015.
also above mentioned problem is resolved using following code..
rho_1 = {'1' '0.8' '0.6' '0.4' '0.2'};
rho_2 = {'0' '-10' '-20' '-30' '-40'};
ff = findall(gca,'type','text');
t=strtrim(get(ff,'String'));
for r=1:length(rho_1)
set(ff(strcmp(t,rho_1{r})),'String',rho_2{r})
end
Ty

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by