How to create a new image of 128x128 in MATLAB and how to perform image animation on same.

1 回表示 (過去 30 日間)
vaishali masal
vaishali masal 2015 年 9 月 18 日
回答済み: Walter Roberson 2015 年 9 月 18 日
i want to create an iamge of 128x128 in matlab please send me code for same.

回答 (1 件)

Walter Roberson
Walter Roberson 2015 年 9 月 18 日
%create an image
SampleImage = uint8( rand(128,128) * 255 );
%animate the image
%set up for animation
image(SampleImage);
cmap = colormap();
%and do the colormap animation
for K = 1 : 50
colormap(cmap);
cmap = circshift(cmap, 1, 1);
pause(0.5);
end

カテゴリ

Help Center および File ExchangeAnimation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by