How to handle Compasss GUI?

1 回表示 (過去 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 Center および File Exchange2-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