How to handle Compasss GUI?

1 次查看(过去 30 天)
Prashant Funde
Prashant Funde 2017-6-15
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 个评论
Walter Roberson
Walter Roberson 2017-6-15
Are you using R2014b or later, or are you using an earlier release?
Prashant Funde
Prashant Funde 2017-6-15
编辑:Walter Roberson 2017-6-15
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

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by