Prev: Help in the Fitness Function on GA toolbox
Next: Plotting longitude latitude coordinates in MATLAB
From: Md. Niazul on 31 Jul 2010 08:17 hello all, when i generate a 3-D plot plot withe following code: k = 5; n = 2^k-1; [x,y,z] = sphere(n); c = hadamard(2^k); surf(x,y,z,c); colormap(F.colormap); it genrates a 3-d plot without any rectangular box around the figure. but if i write the following code to save the figure as some format, k = 5; n = 2^k-1; [x,y,z] = sphere(n); c = hadamard(2^k); surf(x,y,z,c); F = getframe(gcf); image(F.cdata); colormap(F.colormap); saveas(gcf,'name','pdf'); it creates a rectangular outer box.Can u pls help me,how to remove the outer box.image(F.cdata) creats the rectangular box. pls help me...thanx in advance.
|
Pages: 1 Prev: Help in the Fitness Function on GA toolbox Next: Plotting longitude latitude coordinates in MATLAB |