필터 지우기
필터 지우기

How to handle Compasss GUI?

조회 수: 2 (최근 30일)
Prashant Funde
Prashant Funde 2017년 6월 15일
편집: Walter Roberson 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에서 Annotations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by