Code covered by the BSD License  

Highlights from
Scalable Vector Graphics (SVG) Export of Figures

image thumbnail

Scalable Vector Graphics (SVG) Export of Figures

by

 

10 Apr 2005 (Updated )

Converts 3D and 2D MATLAB plots to the scalable vector format (SVG).

Editor's Notes:

This file was a File Exchange Pick of the Week

demo_3d_plot2svg.m
figure
[x y z] = sphere(20); 
s = surface(x,y,z,'facecolor','interp','cdata',z);
set(s,'edgecolor','black','facealpha','flat','alphadata',x.*z);
alpha('scaled'); 
axis equal
box on
grid on
campos([2 13 10]); 
xlabel('X');
ylabel('Y');
zlabel('Z');
title('Sphere with Alpha Data');
plot2svg('sphere.svg');

Contact us