-
大小: 2KB文件類型: .zip金幣: 1下載: 0 次發布日期: 2021-01-05
- 語言: Matlab
- 標簽: matlab??applyhatch??
資源簡介
matlab紋理柱狀圖繪制程序applyhatch,改進原程序的hardcopy問題。可成功繪制紋理柱狀圖。適用于新版matlab
代碼片段和文件信息
function?applyhatch(hpatternscolorlist)
%APPLYHATCH?Apply?hatched?patterns?to?a?figure
%??APPLYHATCH(HPATTERNS)?creates?a?new?figure?from?the?figure?H?by
%??replacing?distinct?colors?in?H?with?the?black?and?white
%??patterns?in?PATTERNS.?The?format?for?PATTERNS?can?be
%????a?string?of?the?characters?‘/‘?‘\‘?‘|‘?‘-‘?‘+‘?‘x‘?‘.‘
%????a?cell?array?of?matrices?of?zeros?(white)?and?ones?(black)
%
%??APPLYHATCH(HPATTERNSCOLORS)?maps?the?colors?in?the?n?by?3
%??matrix?COLORS?to?PATTERNS.?Each?row?of?COLORS?specifies?an?RGB
%??color?value.
%
%??Note?this?function?makes?a?bitmap?image?of?H?and?so?is?limited
%??to?low-resolution?bitmap?output.
%
%??Example?1:
%????bar(rand(34));
%????applyhatch(gcf‘\-x.‘);
%
%??Example?2:
%????colormap(cool(6));
%????pie(rand(61))
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????3587??2019-12-16?14:54??applyhatch.m
?????文件?????????972??2019-12-16?14:51??makehatch.m
- 上一篇:衛星軌道模擬 仿真 程序
- 下一篇:生成四種難度的數獨生成器MATLAB程序
評論
共有 條評論