matlab在多媒體算法處理中的應用


      本文主要是用matlab完成各色物品的製作,通過編程熟悉matlab的基本用法,本文原創,轉載和使用請註明出處;

所有的源碼都可以通過關注公衆號(天一色)獲取。



%-------------------------大花瓶——————————————————————

%------------------製作人:天一色—————————————————————

%----------------------2013-9-1----------------------------------------

clc

clear

close all

clear all

 

t=0:pi/100:2*pi;

[x,y,z]=cylinder(2+sin(2*t)+cos(2*t));

surf(x,y,z);

shading interp

%colormap(copper);

%colormap(hot);

%colormap(bone);

%colormap(pink);

%colormap(flag);

%colormap(hsv);

%colormap(white);

%colormap(grey);

%colormap(lines);

%colormap(colorcube);

%colormap(vga);

%colormap(jet);

%colormap(prism);

colormap(cool);

axis off

axis square

 

%-------------------------大花瓶——————————————————————

%------------------製作人:天一色—————————————————————

%----------------------2013-9-1----------------------------------------

clc

clear

close all

clear all

 

t=0:pi/100:2*pi;

[x,y,z]=cylinder(1+sin(3*t));

surf(x,y,z);

shading interp

%colormap(copper);

%colormap(hot);

%colormap(bone);

%colormap(pink);

%colormap(flag);

%colormap(hsv);

%colormap(white);

%colormap(grey);

%colormap(lines);

%colormap(colorcube);

%colormap(vga);

%colormap(jet);

%colormap(prism);

colormap(cool);

axis off

axis square

 

 

 

 

 

 

%-------------------------花瓶——————————————————————

%------------------製作人:天一色—————————————————————

%----------------------2013-9-1----------------------------------------

clc

clear

close all

clear all

 

t=0:pi/100:2*pi;

[x,y,z]=cylinder(2+sin(1*t));

surf(x,y,z);

shading interp

%colormap(copper);

%colormap(hot);

%colormap(bone);

%colormap(pink);

%colormap(flag);

%colormap(hsv);

%colormap(white);

%colormap(grey);

%colormap(lines);

%colormap(colorcube);

%colormap(vga);

%colormap(jet);

%colormap(prism);

colormap(cool);

axis off

axis square

 

 後續內容詳見: 微信公衆號(天一色)

 

 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章