フィルターのクリア

log ticks on Y-axis

3 ビュー (過去 30 日間)
Mehdi Jaiem
Mehdi Jaiem 2021 年 1 月 19 日
コメント済み: Mehdi Jaiem 2021 年 1 月 19 日
Dear community
I am new to matlab and try to reproduce ticks on the Y-Axis according to a logatithmic scale (see photo).
Any help is appreciated
%b=log10(8000);
%yc1=logspace(2,b,23);
yc2=linspace(1e2,8e3,23)
yd=stem(yc2);
xlabel('Borders','FontSize',12);
ylabel('F (Hz)','FontSize',12);
set(gca,'YLim',[1e2 1e4],'YTick',[10^2 10^3 10^4]);
In the exercice it is said to use logspace and not linspace

採用された回答

Daniel Pollard
Daniel Pollard 2021 年 1 月 19 日
set(gca, 'YScale', 'log')
Is this what you mean?
  1 件のコメント
Mehdi Jaiem
Mehdi Jaiem 2021 年 1 月 19 日
Yes thank you it worked !

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by