Como eu faço para colocar a escala no eixo x de um gráfico Ex: um gráfico de 0 até 100 mostrando de 10 em 10

2 件のコメント

KALYAN ACHARJYA
KALYAN ACHARJYA 2018 年 9 月 26 日
編集済み: KALYAN ACHARJYA 2018 年 9 月 26 日
English Please?
Use o idioma inglês
OCDER
OCDER 2018 年 9 月 26 日
From google translator:
How do I place the scale on the x-axis? Ex plot: a graph from 0 to 100 showing 10 in 10
Can you clarify "10 in 10"? Can you write in English for us?
Você pode esclarecer "10 em 10"? Você pode escrever em inglês?

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

 採用された回答

Steven Lord
Steven Lord 2018 年 9 月 26 日

0 投票

x = linspace(0,50);
y = sin(x/2);
plot(x,y)
xticks(0:10:50)

その他の回答 (2 件)

KALYAN ACHARJYA
KALYAN ACHARJYA 2018 年 9 月 26 日
編集済み: KALYAN ACHARJYA 2018 年 9 月 26 日

0 投票

use esta linha
axis([0 100 0 inf])
Por exemplo, veja o exemplo a seguir
x=0:1:100;
y=x.^2+1;
plot(x,y)
axis([0 100 0 inf])
rafael
rafael 2023 年 6 月 12 日

0 投票

x = linspace(0,50);
y = sin(x/2);
plot(x,y)
xticks(0:10:50

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

質問済み:

2018 年 9 月 26 日

回答済み:

2023 年 6 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by