資源簡介
出圖效果詳見博客顯示。網格自己可以任意設置,橫軸下面的標注也可以任意的等間隔顯示。
代碼片段和文件信息
%%?
clc?
clear?all
close?all
%%?
figure(1);
xlim([020]);set(gca‘xtick‘0:20);
a?=?get(gca‘xticklabel‘);grid?on;
b?=?cell(size(a));
%?b(1:5:211)?=?{‘0‘‘5‘‘10‘?‘15‘?‘20‘};
%?b(1:5:211)?=?{0510?15?20};
b(mod(1:size(a1)5)==1:)?=?a(mod(1:size(a1)5)==1:);
set(gca‘xticklabel‘b);
????
????????tle>未將對象引用設置到對象的實例。 tle>
????????ta?name=“viewport“?content=“width=device-width“?/>
????????yle>
?????????body?{font-family:“Verdana“;font-weight:normal;font-size:?.7em;color:black;}?
?????????p?{font-family:“Verdana“;font-weight:normal;color:black;margin-top:?-5px}
?????????b?{font-family:“Verdana“;font-weight:bold;color:black;margin-top:?-5px}
?????????H1?{?font-family:“Verdana“;font-weight:normal;font-size:18pt;color:re
評論
共有 條評論