简体   繁体   中英

Export bar3 plot from Matlab to SVG

I'm trying to export bar3 plot from matlab to SVG file with to following code:

f= figure;
temperatures = [1 2 3 ; 1 2 3];
bar3(temperatures,0.5);
print(f,'-dsvg','radio90.svg');

But it failed for that reason:

Unknown device 'svg' for hardcopy.

I also tried to export the plot with plot2svg but plot2svg isn't support completely in bar3 plots.

If you look at the documentation for print , the -dsvg flag is for Simulink models only, not MATLAB figures:

在此处输入图片说明

For plot2svg , I would report this to the author via the File Exchange.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM