號令行鍵入:
profit = [20 40 50 40 50 60 70 60 70 60 60 70 80 90];
%界說profit的規模。
 號令行鍵入:
stem(profit)
%繪圖。
 號令行鍵入:
xlim([0 15])
%限值圖中x軸的規模。
 號令行鍵入:
ytickformat('usd')
%界說y軸的單元。
 號令行鍵入:
xtickformat('%.1f')
%界說x軸的坐標輸出小數位數。
 號令行鍵入:
ytickformat('\xA3%.2f')
%界說y軸的輸出位數。
 號令行鍵入:
ax = gca;
ax.XAxis
 號令行鍵入:
x = linspace(0,5,1000);
y = 100*exp(x).*sin(20*x);
plot(x,y)
ax = gca;
ax.YAxis.Exponent = 2;
%界說規模,繪圖。
 號令行鍵入:
ax.YAxis.Exponent = 0;
%將指數值更改為 0,使刻度標簽不利用指數記數法。
 END0 篇文章
如果覺得我的文章對您有用,請隨意打賞。你的支持將鼓勵我繼續創作!