Replace hardcopy for only MATLAB version functions

17 ビュー (過去 30 日間)
Minas Emiris
Minas Emiris 2020 年 5 月 2 日
回答済み: Samatha Aleti 2020 年 5 月 5 日
Hi all, I've been recently trying to create a histogram with hatched bars instead of using colours for a formal report. I found a function in the link: <Hatch Functions>, however, upon trying Example 1 from the Documentation of applyhatch_plus.m:
bar(rand(3,4));
[im_hatch,colorlist] = applyhatch_plus(gcf,'\-x.',[],150);
imwrite(im_hatch,'im_hatch.tiff','tiff')
I get the following error message:
Unrecognized function or variable 'hardcopy'.
Error in applyhatch_plus (line 89)
bits = hardcopy(h,'-dzbuffer',['-r' num2str(dpi)]);
I realise that hardcopy is no longer a function in MATLAB, but does anybody have an idea of how I could retrieve it? Even better, any ideas to hatch histograms would be very much appreciated. Also tried <Hatchfill> but it also seems to use old functions.

回答 (1 件)

Samatha Aleti
Samatha Aleti 2020 年 5 月 5 日
Hi,
There is a latest MATLAB File exchange for this hatchfunctionality. You can find it here.
Hope this helps!

カテゴリ

Help Center および File ExchangeData Distribution Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by